History

workqueue: Fix typo in comments

Fix typo: *assing ==> assign *alloced ==> allocated *Retun ==> Return *excute ==> execute v1->v2: *reverse 'iff' *update changelog

Cai Huoqing committed 5 years ago

Commit 67dc8321 parent f728c4a2 files · +4 −4Browse files

Showing the changes to kernel/workqueue.c (1 of 2 files). Show all

Unified · Split

kernel/workqueue.c+3−3
@@ -524,7 +524,7 @@ static inline void debug_work_deactivate(struct work_struct *work) { } · 523 unmodified lines
524#endif524#endif
525 525
526/**526/**
527 * worker_pool_assign_id - allocate ID and assing it to @pool527 * worker_pool_assign_id - allocate ID and assign it to @pool
528 * @pool: the pool pointer of interest528 * @pool: the pool pointer of interest
529 *529 *
530 * Returns 0 if ID in [0, WORK_OFFQ_POOL_NONE) is allocated and assigned530 * 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) · 3232 unmodified lines
3763 raw_spin_unlock_irqrestore(&pwq->pool->lock, flags);3763 raw_spin_unlock_irqrestore(&pwq->pool->lock, flags);
3764}3764}
3765 3765
3766/* initialize newly alloced @pwq which is associated with @wq and @pool */3766/* initialize newly allocated @pwq which is associated with @wq and @pool */
3767static void init_pwq(struct pool_workqueue *pwq, struct workqueue_struct *wq,3767static void init_pwq(struct pool_workqueue *pwq, struct workqueue_struct *wq,
3768 struct worker_pool *pool)3768 struct worker_pool *pool)
3769{3769{
@@ -5331,7 +5331,7 @@ static int workqueue_apply_unbound_cpumask(void) · 1561 unmodified lines
5331 * the affinity of all unbound workqueues. This function check the @cpumask5331 * the affinity of all unbound workqueues. This function check the @cpumask
5332 * and apply it to all unbound workqueues and updates all pwqs of them.5332 * and apply it to all unbound workqueues and updates all pwqs of them.
5333 *5333 *
5334 * Retun: 0 - Success5334 * Return: 0 - Success
5335 * -EINVAL - Invalid @cpumask5335 * -EINVAL - Invalid @cpumask
5336 * -ENOMEM - Failed to allocate memory for attrs or pwqs.5336 * -ENOMEM - Failed to allocate memory for attrs or pwqs.
5337 */5337 */