From nobody Sun Feb 8 16:11:30 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5C47EC001DE for ; Mon, 31 Jul 2023 15:36:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231916AbjGaPgB (ORCPT ); Mon, 31 Jul 2023 11:36:01 -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: quoted-printable 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/52b38b7ad589c89a8c69272497bed2003= 4f8e322 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=3Dforce'). 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); } =20 -/* Returns true if SMT is not supported of forcefully (irreversibly) disab= led */ +/* Returns true if SMT is supported and not forcefully (irreversibly) disa= bled */ bool cpu_smt_possible(void) { return cpu_smt_control !=3D CPU_SMT_FORCE_DISABLED &&