Message ID | 20230710032121.8341-1-rui.zhang@intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp4765475vqx; Sun, 9 Jul 2023 21:08:42 -0700 (PDT) X-Google-Smtp-Source: APBJJlHbt0WbOe+vPNcGRRp7Xs3pmqwt6tThEs7AUgmg5uECEowJX4Z4dBpCvY0XzPHhhAxV9nTE X-Received: by 2002:a17:907:6e16:b0:98e:b48:24fc with SMTP id sd22-20020a1709076e1600b0098e0b4824fcmr12559740ejc.51.1688962121751; Sun, 09 Jul 2023 21:08:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688962121; cv=none; d=google.com; s=arc-20160816; b=iiRAeCvxqjHv8A/kIE15pVEtaI6gtVU8yM8yZ08PC16XzOZsjVhFkBX0MKSp6nl8nh p0q4vxjbKLQRP20Mr/mTKOUkbq4HKOFnDnHfKTRkLyc9gjrDBhoyUiFf2tBFI59msftZ LQnV9yeKohIxueX3cY8HustOSfyaz2fR/Mtmxfk5ozBNk1VQmvVpByPR8wF7uSbDml1q dmNylt5uCLe3ZGWD4oGysUOoAoL99P25nwDae2deRLceJhjdY+ttfareF9Sp/4tq9867 jsWWV63GpN0b4rovFbUJ/cx1hSSPCxq/n2Beq7oq4GjyBWF7QWJqCgQAaqpzdCatAtOC wrzw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=OFUznrzTqJgviehSQyj1EVB9UdRhRJPoLAXS0nqlG44=; fh=m7RnzZhFWb12bXUoW4deYMmZ/oaDneQgmIiMSbUseiA=; b=umMBShDmMIFPhi2kbnrK/r2iQqHserr66Qta3Tqf76q5zu/GzgDPUEPUilmAFWhFDy oVmtTsg/VMv2U96MLf7uw73U0oBa2Ppzzb/7JYI0yJOHDfXkVq70y/jmYAzYi85gIwXT yu1SGd7se9Mg+oLcrJO3MCgn7X4+ehRjB1ci8ryL2AECPYBy8h8Ovlxt32O58zZce+TS FjMMa527BCwaLpA0Rc0SsRammj01VOdU2/bEMsacylGvo4dS/oExgS3xjWCdF24Wll+b YoEM95nl8SlJkre4fzUUjb9/g91rLgWTw7ShJ0Qoa88z+WzXWV8ClMwfH5aV9uY5iGti BtLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=dcMW02oD; 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=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a23-20020a1709065f9700b0098e31cd141asi8596017eju.747.2023.07.09.21.08.18; Sun, 09 Jul 2023 21:08:41 -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=@intel.com header.s=Intel header.b=dcMW02oD; 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=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229793AbjGJDWL (ORCPT <rfc822;ybw1215001957@gmail.com> + 99 others); Sun, 9 Jul 2023 23:22:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229743AbjGJDWJ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 9 Jul 2023 23:22:09 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE67DF9 for <linux-kernel@vger.kernel.org>; Sun, 9 Jul 2023 20:22:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1688959328; x=1720495328; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=FeTrK2ed9EXENbT/tuue9blgvUIiruInOFAC1KECqjA=; b=dcMW02oDFb2KpYRQf8n0kpHZPer+jsHmwUoaQWQ1aaC9iAf0G5fHXL/L G/2DOCZMyqxbeFOOJVA470Qb45vR/SrtaAe0IwJUob+pU5ttql28nMaZi kW2TFr3KOjYM3X+UGR4rkui74lBn1otXVjngdTj2C6xvxO4QfH8xyLwqP bb3RLkopKHzFQScxGKRQfDQU2BhUdWqdSMqP9+BXR/98w+bSSkhyb3SqL tNyuAafYmJCHWWNXnt0Gz18j9E60PqwjyBQUMEsNnfHGyi1ylu7glxaeX ocq8klXHUN1je12HPZDs3NKrhrvZkCGfvifkwdnmJxln8N26xdreZ5kwZ Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10766"; a="395027755" X-IronPort-AV: E=Sophos;i="6.01,193,1684825200"; d="scan'208";a="395027755" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jul 2023 20:22:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10766"; a="894636164" X-IronPort-AV: E=Sophos;i="6.01,193,1684825200"; d="scan'208";a="894636164" Received: from rzhang1-mobl7.sh.intel.com ([10.238.6.118]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jul 2023 20:22:04 -0700 From: Zhang Rui <rui.zhang@intel.com> To: tglx@linutronix.de, peterz@infradead.org Cc: linux-kernel@vger.kernel.org, vkuznets@redhat.com Subject: [PATCH] cpu/SMT: Fix cpu_smt_possible() comment Date: Mon, 10 Jul 2023 11:21:21 +0800 Message-Id: <20230710032121.8341-1-rui.zhang@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771005146234529341 X-GMAIL-MSGID: 1771005146234529341 |
Series |
cpu/SMT: Fix cpu_smt_possible() comment
|
|
Commit Message
Zhang, Rui
July 10, 2023, 3:21 a.m. UTC
The comment of cpu_smt_possible() is not aligned with the changelog of
commit e1572f1d08be ("cpu/SMT: create and export cpu_smt_possible()"),
and it is wrong.
Fix cpu_smt_possible() comment.
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
---
kernel/cpu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Zhang Rui <rui.zhang@intel.com> writes: > The comment of cpu_smt_possible() is not aligned with the changelog of > commit e1572f1d08be ("cpu/SMT: create and export cpu_smt_possible()"), > and it is wrong. > > Fix cpu_smt_possible() comment. > > Signed-off-by: Zhang Rui <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 7e8f1b044772..f6811c857102 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 && The function must've had a different name in an earlier version of the patch... Thanks for catching this! Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
On Mon, Jul 10 2023 at 11:21, Zhang Rui wrote: > The comment of cpu_smt_possible() is not aligned with the changelog of > commit e1572f1d08be ("cpu/SMT: create and export cpu_smt_possible()"), > and it is wrong. Why? Do I need to go and read that commit log and figure out what's wrong? > Fix cpu_smt_possible() comment. Zero information.
Hi, Thomas, On Fri, 2023-07-28 at 09:34 +0200, Thomas Gleixner wrote: > On Mon, Jul 10 2023 at 11:21, Zhang Rui wrote: > > The comment of cpu_smt_possible() is not aligned with the changelog > > of > > commit e1572f1d08be ("cpu/SMT: create and export > > cpu_smt_possible()"), > > and it is wrong. > > Why? Do I need to go and read that commit log and figure out what's > wrong? > > > Fix cpu_smt_possible() comment. > > Zero information. > Thanks for reviewing. Sent patch V2 with changelog rephrased. thanks, rui
diff --git a/kernel/cpu.c b/kernel/cpu.c index 7e8f1b044772..f6811c857102 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 &&