OpenCloudOS-Kernel/arch/x86/kernel/cpu/microcode
Borislav Petkov 58b5f2cc4b x86/microcode/intel: Move the BUG_ON up and turn it into WARN_ON
If we're going to BUG_ON() because we're running on the wrong CPU, we
better do it as the first thing we do when entering that function. And
also, turn it into a WARN_ON() because it is not worth to panic the
system if we apply the microcode on the wrong CPU - we're simply going
to exit early.

Tested-by: Thomas Voegtle <tv@lio96.de>
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/1454499225-21544-11-git-send-email-bp@alien8.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2016-02-09 11:41:17 +01:00
..
Makefile x86/microcode: Merge the early microcode loader 2015-10-21 11:22:12 +02:00
amd.c x86/microcode/AMD: Drop redundant printk prefix 2016-02-09 11:41:16 +01:00
core.c x86/microcode: Remove an unneeded NULL check 2016-02-09 11:41:16 +01:00
intel.c x86/microcode/intel: Move the BUG_ON up and turn it into WARN_ON 2016-02-09 11:41:17 +01:00
intel_lib.c x86/microcode: Remove modularization leftovers 2015-10-21 11:22:12 +02:00