Skip to content

Commit 67dc832

Browse files
caihuoqing1990htejun
authored andcommitted
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 <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
1 parent f728c4a commit 67dc832

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/linux/workqueue.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ enum {
324324
* to execute and tries to keep idle cores idle to conserve power;
325325
* however, for example, a per-cpu work item scheduled from an
326326
* interrupt handler on an idle CPU will force the scheduler to
327-
* excute the work item on that CPU breaking the idleness, which in
327+
* execute the work item on that CPU breaking the idleness, which in
328328
* turn may lead to more scheduling choices which are sub-optimal
329329
* in terms of power consumption.
330330
*

kernel/workqueue.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ static inline void debug_work_deactivate(struct work_struct *work) { }
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)
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)
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
*/

0 commit comments

Comments
 (0)