]> Git Repo - linux.git/commitdiff
x86/umip: Print UMIP line only once
authorBorislav Petkov <[email protected]>
Tue, 27 Nov 2018 20:54:18 +0000 (21:54 +0100)
committerBorislav Petkov <[email protected]>
Mon, 3 Dec 2018 15:59:10 +0000 (16:59 +0100)
... instead of issuing it per CPU and flooding dmesg unnecessarily.
Streamline the formulation, while at it.

Signed-off-by: Borislav Petkov <[email protected]>
Cc: "H. Peter Anvin" <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Ricardo Neri <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
arch/x86/kernel/cpu/common.c

index ffb181f959d2b221759b6c85deded0930f2ff3cc..2c56b8066280c6a8de18d6ecba9bba089bce0ed5 100644 (file)
@@ -353,7 +353,7 @@ static __always_inline void setup_umip(struct cpuinfo_x86 *c)
 
        cr4_set_bits(X86_CR4_UMIP);
 
-       pr_info("x86/cpu: Activated the Intel User Mode Instruction Prevention (UMIP) CPU feature\n");
+       pr_info_once("x86/cpu: Intel User Mode Instruction Prevention (UMIP) activated\n");
 
        return;
 
This page took 0.044006 seconds and 4 git commands to generate.