From patchwork Fri Jan 27 06:39:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 49098 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp685790wrn; Thu, 26 Jan 2023 22:44:43 -0800 (PST) X-Google-Smtp-Source: AMrXdXtXF34CSl6d2fPpGnH/eQfl9VQxOGpLx2Q2VKXbQCe3cH6iHILAuIN90CMaplNc/NeP45Os X-Received: by 2002:a17:907:2982:b0:7c1:23f2:c052 with SMTP id eu2-20020a170907298200b007c123f2c052mr29060827ejc.45.1674801883751; Thu, 26 Jan 2023 22:44:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674801883; cv=none; d=google.com; s=arc-20160816; b=Q1BrjTUBkTvF1qANqpgMq0/w8DnES/yY10iJN0lcYdOm1Icb1KjVjsjmVWITeDPjj7 O/N/g+5WotxBgU7RvlcvqUzynJT2KuuWDteqSEB62CMCDiB/ymTbTTGyKH36e/otH7jc KcUD5IOGCfXXqPdXvdIjjal6/C2v29mkM6DCpn5FZDGmT/FoK4oVll1ma0wF6QJHnJpU PjRmkD4Yzu/0EgqkCtwzYtujih8b5Z4IUkO66REHvbwSRqnrO2h7EADuuOVn4rat83SU Q+OOSpiYwg8zrfIMil5qzJVP9PjzZqhVwAM8xXm0qRosR/u029V+BnGnMPsSeeDOcld8 Q31Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=DZse1eO7oh50AhzLCdDhk7R2KKKuFFm0FSMJlqDIjNo=; b=PEBbqvFNSEGFtVypcFCQITgYbtLMdY2eJq7OJzePprHRK1RzilVS8sgXgouYR4TTNH 6kv3zbyy/kvkLUU7kJUZzZxXHvpe1d6UUZRUgO3v0bgYgNs/uVh5FelXBpjx1KlSjX82 8R0Q9FwVNSBHIXJf9lom0vaTKWxWb2ojovxtmC1c4mJChToeoz84rGD0TXdFBEmKadGr oQ+fmqEmkDR2+R1Cspj5jEWCRyF0eAclvYnOvMibhWAYaUF7Dnkrtwe0cbFF2oFafA/X Ku7PxI+9Y7r5Dz7bN4fpI/J6XuZLKk0FwHonOswVEMqeV4zfAMcMq3EWs8pkbjNkCOC2 /o6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=brWK6hJW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gk19-20020a17090790d300b00877817a13ddsi3804196ejb.878.2023.01.26.22.44.20; Thu, 26 Jan 2023 22:44:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=brWK6hJW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232525AbjA0Glb (ORCPT + 99 others); Fri, 27 Jan 2023 01:41:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231854AbjA0GkV (ORCPT ); Fri, 27 Jan 2023 01:40:21 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 939CC6ACB6; Thu, 26 Jan 2023 22:40:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=DZse1eO7oh50AhzLCdDhk7R2KKKuFFm0FSMJlqDIjNo=; b=brWK6hJWj8jGh5PKGf8T+ZwmK6 l//PRZevg3wQoXDUqv2uQEPhVcDQfZqnjmUlY1gZZKg2+3+TW06OV4lZ8O4K1JHxVORqGR/o6Z3Ll upVg5+KZwsK/lGMQm2qqwSDACF3ARH9dRsunCjme6ZsAUCosqXfjltNLcPcyl9GqwOJ1Nv+c188Qt dunEZ0sqTwui5RWr2+W9DnixaShDj592LXu5fNcLH5GSGP6ad+6WGLQxABM4N1cx5eM8a9aHBZE3G bJAp97zz2PacfY8yY1etBuFTou8hlpuPDBgpMAaVLDP8mznfBkchXSmQN7FndtlK8TH2zLgLPfwbZ Bnbj4iTw==; Received: from [2601:1c2:d80:3110::9307] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1pLIPK-00DM0u-4p; Fri, 27 Jan 2023 06:40:18 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Peter Zijlstra , Ingo Molnar , Will Deacon , Jonathan Corbet , linux-doc@vger.kernel.org Subject: [PATCH 17/35] Documentation: locking: correct spelling Date: Thu, 26 Jan 2023 22:39:47 -0800 Message-Id: <20230127064005.1558-18-rdunlap@infradead.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230127064005.1558-1-rdunlap@infradead.org> References: <20230127064005.1558-1-rdunlap@infradead.org> MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756157060268260062?= X-GMAIL-MSGID: =?utf-8?q?1756157060268260062?= Correct spelling problems for Documentation/locking/ as reported by codespell. Signed-off-by: Randy Dunlap Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Will Deacon Cc: Jonathan Corbet Cc: linux-doc@vger.kernel.org --- Documentation/locking/lockdep-design.rst | 4 ++-- Documentation/locking/locktorture.rst | 2 +- Documentation/locking/locktypes.rst | 2 +- Documentation/locking/preempt-locking.rst | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff -- a/Documentation/locking/lockdep-design.rst b/Documentation/locking/lockdep-design.rst --- a/Documentation/locking/lockdep-design.rst +++ b/Documentation/locking/lockdep-design.rst @@ -29,7 +29,7 @@ the validator will shoot a splat if inco A lock-class's behavior is constructed by its instances collectively: when the first instance of a lock-class is used after bootup the class gets registered, then all (subsequent) instances will be mapped to the -class and hence their usages and dependecies will contribute to those of +class and hence their usages and dependencies will contribute to those of the class. A lock-class does not go away when a lock instance does, but it can be removed if the memory space of the lock class (static or dynamic) is reclaimed, this happens for example when a module is @@ -105,7 +105,7 @@ exact case is for the lock as of the rep +--------------+-------------+--------------+ The character '-' suggests irq is disabled because if otherwise the -charactor '?' would have been shown instead. Similar deduction can be +character '?' would have been shown instead. Similar deduction can be applied for '+' too. Unused locks (e.g., mutexes) cannot be part of the cause of an error. diff -- a/Documentation/locking/locktorture.rst b/Documentation/locking/locktorture.rst --- a/Documentation/locking/locktorture.rst +++ b/Documentation/locking/locktorture.rst @@ -113,7 +113,7 @@ stutter without pausing. shuffle_interval - The number of seconds to keep the test threads affinitied + The number of seconds to keep the test threads affined to a particular subset of the CPUs, defaults to 3 seconds. Used in conjunction with test_no_idle_hz. diff -- a/Documentation/locking/locktypes.rst b/Documentation/locking/locktypes.rst --- a/Documentation/locking/locktypes.rst +++ b/Documentation/locking/locktypes.rst @@ -500,7 +500,7 @@ caveats also apply to bit spinlocks. Some bit spinlocks are replaced with regular spinlock_t for PREEMPT_RT using conditional (#ifdef'ed) code changes at the usage site. In contrast, usage-site changes are not needed for the spinlock_t substitution. -Instead, conditionals in header files and the core locking implemementation +Instead, conditionals in header files and the core locking implementation enable the compiler to do the substitution transparently. diff -- a/Documentation/locking/preempt-locking.rst b/Documentation/locking/preempt-locking.rst --- a/Documentation/locking/preempt-locking.rst +++ b/Documentation/locking/preempt-locking.rst @@ -114,7 +114,7 @@ critical variables. Another example:: int buf[NR_CPUS]; set_cpu_val(buf); - if (buf[smp_processor_id()] == -1) printf(KERN_INFO "wee!\n"); + if (buf[smp_processor_id()] == -1) printf(KERN_INFO "whee!\n"); spin_lock(&buf_lock); /* ... */