diff options
author | Borislav Petkov <bp@suse.de> | 2018-11-27 15:54:18 -0500 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2018-12-03 10:59:10 -0500 |
commit | 0abbbc63d0251a25d3df6c8a56ab3d3c20af082c (patch) | |
tree | 8f112ca8ebc2fc7a7ceda500b80f30d2df7e7e73 /arch/x86/kernel/cpu/common.c | |
parent | 08e823c2c5899ef2de3aa1727233f1f19e8c1cc1 (diff) |
x86/umip: Print UMIP line only once
... instead of issuing it per CPU and flooding dmesg unnecessarily.
Streamline the formulation, while at it.
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Ricardo Neri <ricardo.neri-calderon@linux.intel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20181127205936.30331-1-bp@alien8.de
Diffstat (limited to 'arch/x86/kernel/cpu/common.c')
-rw-r--r-- | arch/x86/kernel/cpu/common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c index ffb181f959d2..2c56b8066280 100644 --- a/arch/x86/kernel/cpu/common.c +++ b/arch/x86/kernel/cpu/common.c | |||
@@ -353,7 +353,7 @@ static __always_inline void setup_umip(struct cpuinfo_x86 *c) | |||
353 | 353 | ||
354 | cr4_set_bits(X86_CR4_UMIP); | 354 | cr4_set_bits(X86_CR4_UMIP); |
355 | 355 | ||
356 | pr_info("x86/cpu: Activated the Intel User Mode Instruction Prevention (UMIP) CPU feature\n"); | 356 | pr_info_once("x86/cpu: Intel User Mode Instruction Prevention (UMIP) activated\n"); |
357 | 357 | ||
358 | return; | 358 | return; |
359 | 359 | ||