Skip to content

Commit d0e7d14

Browse files
suryasaimadhuingomolnar
authored andcommitted
cpu/SMT: State SMT is disabled even with nosmt and without "=force"
When booting with "nosmt=force" a message is issued into dmesg to confirm that SMT has been force-disabled but such a message is not issued when only "nosmt" is on the kernel command line. Fix that. Signed-off-by: Borislav Petkov <bp@suse.de> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/20181004172227.10094-1-bp@alien8.de Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent 9c2298a commit d0e7d14

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎kernel/cpu.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@ void __init cpu_smt_disable(bool force)
362362
pr_info("SMT: Force disabled\n");
363363
cpu_smt_control = CPU_SMT_FORCE_DISABLED;
364364
} else {
365+
pr_info("SMT: disabled\n");
365366
cpu_smt_control = CPU_SMT_DISABLED;
366367
}
367368
}

0 commit comments

Comments
 (0)