Skip to content

Commit 52b38b7

Browse files
zhang-ruiKAGA-KOKO
authored andcommitted
cpu/SMT: Fix cpu_smt_possible() comment
Commit e1572f1 ("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 <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Vitaly Kuznetsov <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 7f48405 commit 52b38b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/cpu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ static inline bool cpu_smt_allowed(unsigned int cpu)
676676
return !cpumask_test_cpu(cpu, &cpus_booted_once_mask);
677677
}
678678

679-
/* Returns true if SMT is not supported of forcefully (irreversibly) disabled */
679+
/* Returns true if SMT is supported and not forcefully (irreversibly) disabled */
680680
bool cpu_smt_possible(void)
681681
{
682682
return cpu_smt_control != CPU_SMT_FORCE_DISABLED &&

0 commit comments

Comments
 (0)