]> nv-tegra.nvidia Code Review - linux-3.10.git/blobdiff - arch/x86_64/kernel/entry.S
[PATCH] x86_64: interrupt handling fix
[linux-3.10.git] / arch / x86_64 / kernel / entry.S
index 3233a15cc4e074c00b75569f21c2844ee280b214..1086b5fcac21c51ad8acb01a02c6c8a6a971a8c7 100644 (file)
@@ -296,6 +296,7 @@ int_very_careful:
        call syscall_trace_leave
        popq %rdi
        andl $~(_TIF_SYSCALL_TRACE|_TIF_SYSCALL_AUDIT|_TIF_SINGLESTEP),%edi
+       cli
        jmp int_restore_rest
        
 int_signal:
@@ -307,6 +308,7 @@ int_signal:
 1:     movl $_TIF_NEED_RESCHED,%edi    
 int_restore_rest:
        RESTORE_REST
+       cli
        jmp int_with_check
        CFI_ENDPROC
                
@@ -490,7 +492,8 @@ retint_signal:
        call do_notify_resume
        RESTORE_REST
        cli
-       GET_THREAD_INFO(%rcx)   
+       GET_THREAD_INFO(%rcx)
+       movl $_TIF_WORK_MASK,%edi
        jmp retint_check
 
 #ifdef CONFIG_PREEMPT