Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4600102rwb; Mon, 31 Jul 2023 09:12:41 -0700 (PDT) X-Google-Smtp-Source: APBJJlGal5/VCB4d8b4IacakmdXW9X02yvpEBeqRqqgHwBg5XDieoOpWsZd3RyQhZhDqrTtbzA5i X-Received: by 2002:a17:906:7a09:b0:98e:23d3:bf47 with SMTP id d9-20020a1709067a0900b0098e23d3bf47mr226629ejo.36.1690819960731; Mon, 31 Jul 2023 09:12:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690819960; cv=none; d=google.com; s=arc-20160816; b=PRbrPpskVAYTx4RppnM5BBQeYyyNCtUkwyjqd7jW9nbx9MFPljZKvR4c4NxFq2Rlnk o+AlJPJZT8odYhQE61DQSc1s4pCyrY700Qr7q0D5txLJF8ij3BbxXFP+HNxuy8bOQS/Y 82MS+DDt+HNrznABM//7l6zxzg2WF4hkozku5463+QFSVi9r9TLEfSW/Ix7vXi8D1IVE Yj6hunSPqO2PP8/3QeGjt8Tjg6fp87W/7DxWYZZLYOdjxxqP48NLscROZUmwKGgpqWul AffcU8AYDf67jMinxgcU+qwmmsJ6l3h21UQcxsHJ29lM8SnHfi95F1GsDvTxI5rrP6Kv 09Xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=lXQ2UlHztnSm7+VktGweD1ERC2/wwrBIcTkCarc5xAU=; fh=upF951G2H9k/GoAwEVjFOkoHtv14ziFm/Tyvv4uTTWs=; b=qoJaGEq/oTQcBBxH0JP9i+9APk2Hn5q6S8CnNdwO1OMX0Nk7d2kjIZg9OsDPAfP+bu LBGzNXIbjDjDzC9L1VgOgJ+RLC0z1cXj7dcji5q+Sf0yqJNOFGdoncNQqZu3DD68if4v 83V1CAmuFx3T4YTaHBkDD1x6SdMWVau1QPSlyuzfaMeaL5sgP7wpAg2J4gPhbfRpGVpq 7jPaMnnzapCAZGBlrh7Ap42SsKCsrJbh6k1i1x/KA/jhBctGJKPlAXMC7RP9oC6d7k72 DhvQqbi+sIqZm2OhbAl0CsTc8XLAg/2Rg2VXh6FQyb1bfiB2NdtUGJ5UizjfEC6myiaw v2uA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=s6zw5x4d; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=Txh65fJ0; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x23-20020a1709065ad700b0098b0feb8935si4182102ejs.1035.2023.07.31.09.12.15; Mon, 31 Jul 2023 09:12:40 -0700 (PDT) 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=@linutronix.de header.s=2020 header.b=s6zw5x4d; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=Txh65fJ0; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231787AbjGaPgA (ORCPT + 99 others); Mon, 31 Jul 2023 11:36:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230171AbjGaPf7 (ORCPT ); Mon, 31 Jul 2023 11:35:59 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5ACC126; Mon, 31 Jul 2023 08:35:58 -0700 (PDT) Date: Mon, 31 Jul 2023 15:35:56 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1690817757; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lXQ2UlHztnSm7+VktGweD1ERC2/wwrBIcTkCarc5xAU=; b=s6zw5x4dkby2sE8Od+vaTzPkZMiBkUxKhohNUIZOa7Qg4x08pRw8lpCIPnrpDYfD/XqPVN l6R8EwOZg/XV7r7JkNlobCvohEHmRFw6rGKxrgYScLVrP15smYySsdi2e8Lr7hPkrgoqCm BSstqyEqf2UgCIrq/UV1XyCU7FE/dZ5adKkG8cRNzoVGUqiJoH9BboLiVolIl+PA8TYSwm UeyrFtusegoLW+Bsu40giK9uAp2RjGSzO3hHvSFJRmY10W6qOyQp0ucYzH8k9aJnPqhHqw lMQ7Gt9CxYrIRsDsxwTDp9z9KIivVKV6eH5tpKwSBg/yTjFQqdnmLZxexKgyNw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1690817757; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lXQ2UlHztnSm7+VktGweD1ERC2/wwrBIcTkCarc5xAU=; b=Txh65fJ0g+AhCBJiHTvb5jYL7Kn9pzOhRKQt1+5vEZ3Xlfw2hveeTw/Q8e7ubJ5EEJLg8W YZx5J3ONgKfryfBg== From: "tip-bot2 for Zhang Rui" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: smp/core] cpu/SMT: Fix cpu_smt_possible() comment Cc: Zhang Rui , Thomas Gleixner , Vitaly Kuznetsov , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230728155313.44170-1-rui.zhang@intel.com> References: <20230728155313.44170-1-rui.zhang@intel.com> MIME-Version: 1.0 Message-ID: <169081775691.28540.11108672281544540952.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 The following commit has been merged into the smp/core branch of tip: Commit-ID: 52b38b7ad589c89a8c69272497bed20034f8e322 Gitweb: https://git.kernel.org/tip/52b38b7ad589c89a8c69272497bed20034f8e322 Author: Zhang Rui AuthorDate: Fri, 28 Jul 2023 23:53:13 +08:00 Committer: Thomas Gleixner CommitterDate: Mon, 31 Jul 2023 17:32:44 +02:00 cpu/SMT: Fix cpu_smt_possible() comment Commit e1572f1d08be ("cpu/SMT: create and export cpu_smt_possible()") introduces cpu_smt_possible() to represent if SMT is theoretically possible. It returns true when SMT is supported and not forcefully disabled ('nosmt=force'). But the comment of it says "Returns true if SMT is not supported of forcefully (irreversibly) disabled", which is wrong. Fix that comment accordingly. Signed-off-by: Zhang Rui Signed-off-by: Thomas Gleixner Reviewed-by: Vitaly Kuznetsov Link: https://lore.kernel.org/r/20230728155313.44170-1-rui.zhang@intel.com --- kernel/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/cpu.c b/kernel/cpu.c index 7e8f1b0..f6811c8 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -676,7 +676,7 @@ static inline bool cpu_smt_allowed(unsigned int cpu) return !cpumask_test_cpu(cpu, &cpus_booted_once_mask); } -/* Returns true if SMT is not supported of forcefully (irreversibly) disabled */ +/* Returns true if SMT is supported and not forcefully (irreversibly) disabled */ bool cpu_smt_possible(void) { return cpu_smt_control != CPU_SMT_FORCE_DISABLED &&