]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
modified version of queue-3.14/x86-preempt-fix-preemption-for-i386.patch
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 May 2014 16:01:23 +0000 (18:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 May 2014 16:01:23 +0000 (18:01 +0200)
queue-3.14/x86-preempt-fix-preemption-for-i386.patch

index aff4206f59fb7f272736a1c71e717e5da083f478..31fc5b2269185f9dbbf50060b2c447a83ba5e7c4 100644 (file)
@@ -38,26 +38,48 @@ for tif_need_resched() instead of the ESP based current_thread_info().
 This makes sure we always observe the one true TIF_NEED_RESCHED bit
 and things will work as expected again.
 
+Cc: bp@alien8.de
 Cc: fweisbec@gmail.com
+Cc: david.a.cohen@linux.intel.com
 Cc: mingo@kernel.org
+Cc: fweisbec@gmail.com
+Cc: greg@kroah.com
 Cc: Steven Rostedt <rostedt@goodmis.org>
+Cc: gregkh@linuxfoundation.org
+Cc: pbonzini@redhat.com
+Cc: rostedt@goodmis.org
+Cc: stefan.bader@canonical.com
+Cc: mingo@kernel.org
+Cc: toralf.foerster@gmx.de
 Cc: David Cohen <david.a.cohen@linux.intel.com>
+Cc: Steven Rostedt <rostedt@goodmis.org>
+Cc: torvalds@linux-foundation.org
 Cc: Paolo Bonzini <pbonzini@redhat.com>
+Cc: David Cohen <david.a.cohen@linux.intel.com>
+Cc: <stable@vger.kernel.org>
 Cc: Borislav Petkov <bp@alien8.de>
+Cc: Paolo Bonzini <pbonzini@redhat.com>
+Cc: <stable-commits@vger.kernel.org>
+Cc: Borislav Petkov <bp@alien8.de>
+Cc: peterz@infradead.org
+Cc: Linus Torvalds <torvalds@linux-foundation.org>
+Cc: barra_cuda@katamail.com
 Tested-by: Stefan Bader <stefan.bader@canonical.com>
-Tested-by: Toralf Förster <toralf.foerster@gmx.de>
+Tested-by: Toralf F¿rster <toralf.foerster@gmx.de>
 Tested-by: Michele Ballabio <barra_cuda@katamail.com>
-Signed-off-by: Peter Zijlstra <peterz@infradead.org>
 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+Signed-off-by: Peter Zijlstra <peterz@infradead.org>
+Link: http://lkml.kernel.org/r/20140409142447.GD13658@twins.programming.kicks-ass.net
+
 ---
- arch/x86/include/asm/preempt.h |   1+++++++++++
- include/linux/preempt.h        |    4 ++++
+ arch/x86/include/asm/preempt.h |   12 ++++++++++++
+ include/linux/preempt.h        |    ++
  include/linux/thread_info.h    |    2 --
- 3 files changed, 15 insertions(+), 2 deletions(-)
+ 3 files changed, 14 insertions(+), 2 deletions(-)
 
 --- a/arch/x86/include/asm/preempt.h
 +++ b/arch/x86/include/asm/preempt.h
-@@ -5,6 +5,17 @@
+@@ -5,6 +5,18 @@
  #include <asm/percpu.h>
  #include <linux/thread_info.h>
  
@@ -69,6 +91,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
 + * We hard rely on the fact that all the TIF_NEED_RESCHED bits are
 + * the same, therefore use the slightly more expensive version below.
 + */
++#undef tif_need_resched
 +#define tif_need_resched() test_tsk_thread_flag(current, TIF_NEED_RESCHED)
 +#endif
 +
@@ -77,17 +100,15 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  /*
 --- a/include/linux/preempt.h
 +++ b/include/linux/preempt.h
-@@ -17,6 +17,10 @@
- #include <asm/preempt.h>
+@@ -15,6 +15,8 @@
+  */
+ #define PREEMPT_NEED_RESCHED  0x80000000
  
-+#ifndef tif_need_resched
 +#define tif_need_resched() test_thread_flag(TIF_NEED_RESCHED)
-+#endif
 +
+ #include <asm/preempt.h>
  #if defined(CONFIG_DEBUG_PREEMPT) || defined(CONFIG_PREEMPT_TRACER)
- extern void preempt_count_add(int val);
- extern void preempt_count_sub(int val);
 --- a/include/linux/thread_info.h
 +++ b/include/linux/thread_info.h
 @@ -118,8 +118,6 @@ static inline __deprecated void set_need