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
524524 #endif
525525
526526 /**
527− * worker_pool_assign_id - allocate ID and assing it to @pool
527+ * worker_pool_assign_id - allocate ID and assign it to @pool
528528 * @pool: the pool pointer of interest
529529 *
530530 * 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
37633763 raw_spin_unlock_irqrestore(&pwq->pool->lock, flags);
37643764 }
37653765
3766−/* initialize newly alloced @pwq which is associated with @wq and @pool */
3766+/* initialize newly allocated @pwq which is associated with @wq and @pool */
37673767 static void init_pwq(struct pool_workqueue *pwq, struct workqueue_struct *wq,
37683768 struct worker_pool *pool)
37693769 {
@@ -5331,7 +5331,7 @@ static int workqueue_apply_unbound_cpumask(void) · 1561 unmodified lines
53315331 * the affinity of all unbound workqueues. This function check the @cpumask
53325332 * and apply it to all unbound workqueues and updates all pwqs of them.
53335333 *
5334− * Retun: 0 - Success
5334+ * Return: 0 - Success
53355335 * -EINVAL - Invalid @cpumask
53365336 * -ENOMEM - Failed to allocate memory for attrs or pwqs.
53375337 */