]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
another patch added
authorGreg Kroah-Hartman <gregkh@suse.de>
Tue, 1 Jul 2008 15:09:18 +0000 (08:09 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 1 Jul 2008 15:09:18 +0000 (08:09 -0700)
queue-2.6.25/series
queue-2.6.25/x86-shift-bits-the-right-way-in-native_read_tscp.patch [new file with mode: 0644]

index 229da85b2def99369cdb1d28ea9815b83ead27af..ffbf5590dd928db7f389ad7d23d30945a7120f7e 100644 (file)
@@ -7,3 +7,4 @@ x86_64-ptrace-fix-sys32_ptrace-task_struct-leak.patch
 sched-fix-cpu-hotplug.patch
 ptrace-get-set-fpxregs-broken.patch
 x86-fix-cpu-hotplug-crash.patch
+x86-shift-bits-the-right-way-in-native_read_tscp.patch
diff --git a/queue-2.6.25/x86-shift-bits-the-right-way-in-native_read_tscp.patch b/queue-2.6.25/x86-shift-bits-the-right-way-in-native_read_tscp.patch
new file mode 100644 (file)
index 0000000..9c92966
--- /dev/null
@@ -0,0 +1,37 @@
+From mingo@elte.hu  Tue Jul  1 08:05:01 2008
+From: Max Asbock <masbock@us.ibm.com>
+Date: Mon, 30 Jun 2008 18:17:09 +0200
+Subject: x86: shift bits the right way in native_read_tscp
+To: stable@kernel.org
+Message-ID: <20080630161709.GA17710@elte.hu>
+Content-Disposition: inline
+
+From: Max Asbock <masbock@us.ibm.com>
+
+Commit 41aefdcc98fdba47459eab67630293d67e855fc3 upstream
+
+x86: shift bits the right way in native_read_tscp
+
+native_read_tscp shifts the bits in the high order value in the
+wrong direction, the attached patch fixes that.
+
+Signed-off-by: Max Asbock <masbock@linux.vnet.ibm.com>
+Acked-by: Glauber Costa <gcosta@redhat.com>
+Signed-off-by: Ingo Molnar <mingo@elte.hu>
+Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
+
+---
+ include/asm-x86/msr.h |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/include/asm-x86/msr.h
++++ b/include/asm-x86/msr.h
+@@ -18,7 +18,7 @@ static inline unsigned long long native_
+       unsigned long low, high;
+       asm volatile (".byte 0x0f,0x01,0xf9"
+                     : "=a" (low), "=d" (high), "=c" (*aux));
+-      return low | ((u64)high >> 32);
++      return low | ((u64)high << 32);
+ }
+ /*