Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp9391pxv; Fri, 30 Jul 2021 17:03:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVQVSViJu5hJUrkDkk8RrXMBWYFBKwTetPeQkvItZPqW8H6lDexUaMkrzIaBGyt3sTAEgG X-Received: by 2002:a6b:7901:: with SMTP id i1mr3124947iop.41.1627689785289; Fri, 30 Jul 2021 17:03:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627689785; cv=none; d=google.com; s=arc-20160816; b=K5URpKugC0S5nDTpEMk+g066Jg/gecD+uc+/CiCMGNxp7FQe7BxPqkdt1XJiOkRRe9 CDdBLfGkroooSdZh1B1vnFD5rMkXWI9a9FuNSK7TZVYUxFUUYdZeZFoFJ7XMybKPKjfV tlkJNAePSK8p9bMekBWj3mWhnHwEOF75AOGP9eBuzh9FxPxUlk8L/Pkovu6yeJMOoapf r3y5XKHi98h3oF3F/3TC828aNTb1qSnShCPlGiV6NN/kzzF5axf70354VkobRttC6w5Y b73ACXJN0iiESUXFoeETwrvxJ145HpUAiTjlHIKkQ05ZGerCWNyEPR6v3uSJfiRCUn0e ALmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=v7LUBCDWOvLLZxfdQGsMovprKigBjO4vqHBD1fJusNc=; b=PtB/wFsLUoEs8C5j4EJWMqjpwlDyCMTHQpmbqGXa3Ap6DwVIm6cSGn46pR01c23CUI 2VC9zHNkKVmuOsGvaKCRyPIhMyMEmRAYfFGmaZdwADrme1+q7irltbpkdaXNhhcsghv0 ro9ctwQDGRBzWCJi9gzxvI0pzpn09AxusytenKttxt4v5p1wqRX+2BmTJkAlEGQ1IP6i PywabbSIWU46cyC+EYkhzHOD7pWR3DvfF1rigKl4zOBu2x7YdbWNitr2kSEIOijtYU1a oBD+dArse3ObQIlNxlHoIoUO6XkduE2fiL/EejWKywpR9C0JYWXSbF8LAbaZR/C4gU0/ 50ZQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h5si3876198iol.44.2021.07.30.17.02.54; Fri, 30 Jul 2021 17:03:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234211AbhGaABy (ORCPT + 99 others); Fri, 30 Jul 2021 20:01:54 -0400 Received: from mx21.baidu.com ([220.181.3.85]:56544 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S234036AbhGaABx (ORCPT ); Fri, 30 Jul 2021 20:01:53 -0400 Received: from BJHW-Mail-Ex15.internal.baidu.com (unknown [10.127.64.38]) by Forcepoint Email with ESMTPS id F2117307538119740B5C; Sat, 31 Jul 2021 08:01:37 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BJHW-Mail-Ex15.internal.baidu.com (10.127.64.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Sat, 31 Jul 2021 08:01:37 +0800 Received: from LAPTOP-UKSR4ENP.internal.baidu.com (172.31.63.8) by BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Sat, 31 Jul 2021 08:01:37 +0800 From: Cai Huoqing To: , , CC: , Cai Huoqing Subject: [PATCH v2] workqueue: Fix typo in comments Date: Sat, 31 Jul 2021 08:01:29 +0800 Message-ID: <20210731000129.647-1-caihuoqing@baidu.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.31.63.8] X-ClientProxiedBy: BJHW-Mail-Ex13.internal.baidu.com (10.127.64.36) To BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) X-Baidu-BdMsfe-DateCheck: 1_BJHW-Mail-Ex15_2021-07-31 08:01:37:944 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix typo: *assing ==> assign *alloced ==> allocated *Retun ==> Return *excute ==> execute v1->v2: *reverse 'iff' *update changelog Signed-off-by: Cai Huoqing --- include/linux/workqueue.h | 2 +- kernel/workqueue.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/linux/workqueue.h b/include/linux/workqueue.h index d15a7730ee18..5fcf3d048a5a 100644 --- a/include/linux/workqueue.h +++ b/include/linux/workqueue.h @@ -324,7 +324,7 @@ enum { * to execute and tries to keep idle cores idle to conserve power; * however, for example, a per-cpu work item scheduled from an * interrupt handler on an idle CPU will force the scheduler to - * excute the work item on that CPU breaking the idleness, which in + * execute the work item on that CPU breaking the idleness, which in * turn may lead to more scheduling choices which are sub-optimal * in terms of power consumption. * diff --git a/kernel/workqueue.c b/kernel/workqueue.c index f148eacda55a..b9b86f730b82 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. */ -- 2.25.1