ChangeSet 1.2231.1.82, 2005/03/28 19:39:20-08:00, [EMAIL PROTECTED]
[PATCH] x86_64: Fix CONFIG_PREEMPT
Fix a pretty bad bug in the x86-64 preempt support. The test for
interrupts
off was done the wrong way round, which would lead to kernel preemption
only
when interrupts were off.
Found by Jan Beulich.
Signed-off-by: Andi Kleen <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
entry.S | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -Nru a/arch/x86_64/kernel/entry.S b/arch/x86_64/kernel/entry.S
--- a/arch/x86_64/kernel/entry.S 2005-03-28 21:24:29 -08:00
+++ b/arch/x86_64/kernel/entry.S 2005-03-28 21:24:29 -08:00
@@ -516,7 +516,7 @@
bt $TIF_NEED_RESCHED,threadinfo_flags(%rcx)
jnc retint_restore_args
bt $9,EFLAGS-ARGOFFSET(%rsp) /* interrupts off? */
- jc retint_restore_args
+ jnc retint_restore_args
movl $PREEMPT_ACTIVE,threadinfo_preempt_count(%rcx)
sti
call schedule
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html