]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.0-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Aug 2012 18:30:48 +0000 (11:30 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Aug 2012 18:30:48 +0000 (11:30 -0700)
added patches:
x86-nops-missing-break-resulting-in-incorrect-selection-on-intel.patch

queue-3.0/series
queue-3.0/x86-nops-missing-break-resulting-in-incorrect-selection-on-intel.patch [new file with mode: 0644]

index 3f7617e2c42f5342b8d27e6457fc9bdb77fbbd2a..2f49a9a60323489fba6301cd8a3dbeab324d8b89 100644 (file)
@@ -10,3 +10,4 @@ arm-7479-1-mm-avoid-null-dereference-when-flushing-gate_vma-with-vivt-caches.pat
 alsa-hda-remove-quirk-for-dell-vostro-1015.patch
 mm-mmu_notifier-fix-freed-page-still-mapped-in-secondary-mmu.patch
 mac80211-cancel-mesh-path-timer.patch
+x86-nops-missing-break-resulting-in-incorrect-selection-on-intel.patch
diff --git a/queue-3.0/x86-nops-missing-break-resulting-in-incorrect-selection-on-intel.patch b/queue-3.0/x86-nops-missing-break-resulting-in-incorrect-selection-on-intel.patch
new file mode 100644 (file)
index 0000000..35cd718
--- /dev/null
@@ -0,0 +1,33 @@
+From d6250a3f12edb3a86db9598ffeca3de8b4a219e9 Mon Sep 17 00:00:00 2001
+From: Alan Cox <alan@linux.intel.com>
+Date: Wed, 25 Jul 2012 16:28:19 +0100
+Subject: x86, nops: Missing break resulting in incorrect selection on Intel
+
+From: Alan Cox <alan@linux.intel.com>
+
+commit d6250a3f12edb3a86db9598ffeca3de8b4a219e9 upstream.
+
+The Intel case falls through into the generic case which then changes
+the values.  For cases like the P6 it doesn't do the right thing so
+this seems to be a screwup.
+
+Signed-off-by: Alan Cox <alan@linux.intel.com>
+Link: http://lkml.kernel.org/n/tip-lww2uirad4skzjlmrm0vru8o@git.kernel.org
+Signed-off-by: H. Peter Anvin <hpa@zytor.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ arch/x86/kernel/alternative.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/arch/x86/kernel/alternative.c
++++ b/arch/x86/kernel/alternative.c
+@@ -220,7 +220,7 @@ void __init arch_init_ideal_nops(void)
+                       ideal_nops = intel_nops;
+ #endif
+               }
+-
++              break;
+       default:
+ #ifdef CONFIG_X86_64
+               ideal_nops = k8_nops;