[lkml]   [2018]   [Jan]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH 4.4 01/74] x86/asm/32: Make sync_core() handle missing CPUID on all 32-bit kernels
4.4-stable review patch.  If anyone has any objections, please let me know.


From: Andy Lutomirski <>

commit 1c52d859cb2d417e7216d3e56bb7fea88444cec9 upstream.

We support various non-Intel CPUs that don't have the CPUID
instruction, so the M486 test was wrong. For now, fix it with a big
hammer: handle missing CPUID on all 32-bit CPUs.

Reported-by: One Thousand Gnomes <>
Signed-off-by: Andy Lutomirski <>
Cc: Juergen Gross <>
Cc: Peter Zijlstra <>
Cc: Brian Gerst <>
Cc: Matthew Whitehead <>
Cc: Borislav Petkov <>
Cc: Henrique de Moraes Holschuh <>
Cc: Andrew Cooper <>
Cc: Boris Ostrovsky <>
Cc: xen-devel <>
Signed-off-by: Thomas Gleixner <>
Cc: "Zhang, Ning A" <>
Signed-off-by: Greg Kroah-Hartman <>

arch/x86/include/asm/processor.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- a/arch/x86/include/asm/processor.h
+++ b/arch/x86/include/asm/processor.h
@@ -574,7 +574,7 @@ static inline void sync_core(void)
int tmp;

-#ifdef CONFIG_M486
+#ifdef CONFIG_X86_32
* Do a CPUID if available, otherwise do a jump. The jump
* can conveniently enough be the jump around CPUID.

 \ /
  Last update: 2018-01-29 21:05    [W:0.348 / U:0.268 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site