tree ee5a3c58d6cb74d8fd9b0fe823c51d554ef115de
parent 6fefb0d17599d63e9d30c23bcbe2d4e06477cd55
author Andi Kleen <[EMAIL PROTECTED]> Sun, 17 Apr 2005 05:25:04 -0700
committer Linus Torvalds <[EMAIL PROTECTED]> Sun, 17 Apr 2005 05:25:04 -0700

[PATCH] x86_64: Fix a small missing schedule race

Could lead to a lost reschedule event when the process already rescheduled on
exception exit, and needs it again while still being in the kernel.  Unlikely
case though.

Also remove one redundant cli in another entry.S path.

Signed-off-by: Andi Kleen <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>

 x86_64/kernel/entry.S |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

Index: arch/x86_64/kernel/entry.S
===================================================================
--- d513ab7e0edfb2ee74adf15f2c7714ccdb179978/arch/x86_64/kernel/entry.S  
(mode:100644 sha1:3e888c2e5a06c77eb0a90ff45098eff62f078bf9)
+++ ee5a3c58d6cb74d8fd9b0fe823c51d554ef115de/arch/x86_64/kernel/entry.S  
(mode:100644 sha1:887c5f017d28694c8495769a4df04fddaac6389d)
@@ -284,6 +284,7 @@
        pushq %rdi
        call schedule
        popq %rdi
+       cli
        jmp int_with_check
 
        /* handle signals and tracing -- both require a full stack frame */
@@ -453,7 +454,6 @@
        andl %edi,%edx
        jnz  retint_careful
 retint_swapgs:         
-       cli
        swapgs 
 retint_restore_args:                           
        cli
-
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

Reply via email to