diff options
author | Cai Huoqing <caihuoqing@baidu.com> | 2021-07-31 08:01:29 +0800 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2021-08-09 12:31:03 -1000 |
commit | 67dc8325370844ffce92aa59abe8b453aa6aa83c (patch) | |
tree | 59b8f128adead6a6a501c7f4a42b872c21fb2217 /kernel/workqueue.c | |
parent | f728c4a9e8405caae69d4bc1232c54ff57b5d20f (diff) | |
download | lwn-67dc8325370844ffce92aa59abe8b453aa6aa83c.tar.gz lwn-67dc8325370844ffce92aa59abe8b453aa6aa83c.zip |
workqueue: Fix typo in comments
Fix typo:
*assing ==> assign
*alloced ==> allocated
*Retun ==> Return
*excute ==> execute
v1->v2:
*reverse 'iff'
*update changelog
Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/workqueue.c')
-rw-r--r-- | kernel/workqueue.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 542c2d03dab6..d3c35e47aa90 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c @@ -524,7 +524,7 @@ static inline void debug_work_deactivate(struct work_struct *work) { } #endif /** - * worker_pool_assign_id - allocate ID and assing it to @pool + * worker_pool_assign_id - allocate ID and assign it to @pool * @pool: the pool pointer of interest * * Returns 0 if ID in [0, WORK_OFFQ_POOL_NONE) is allocated and assigned @@ -3763,7 +3763,7 @@ static void pwq_adjust_max_active(struct pool_workqueue *pwq) raw_spin_unlock_irqrestore(&pwq->pool->lock, flags); } -/* initialize newly alloced @pwq which is associated with @wq and @pool */ +/* initialize newly allocated @pwq which is associated with @wq and @pool */ static void init_pwq(struct pool_workqueue *pwq, struct workqueue_struct *wq, struct worker_pool *pool) { @@ -5331,7 +5331,7 @@ static int workqueue_apply_unbound_cpumask(void) * the affinity of all unbound workqueues. This function check the @cpumask * and apply it to all unbound workqueues and updates all pwqs of them. * - * Retun: 0 - Success + * Return: 0 - Success * -EINVAL - Invalid @cpumask * -ENOMEM - Failed to allocate memory for attrs or pwqs. */ |