Skip to contentSkip to conversation

x86_64: Minor microoptimization in syscall entry slow path

PATCH In review [email protected] 1 participant 1 message Apr 12, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 80/198 x86_64: Minor microoptimization in syscall entry slow path

From: "Andi Kleen" <[email protected]>

Minor microoptimization in syscall entry slow path

---

 25-akpm/arch/x86_64/kernel/entry.S |    4 +---
 1 files changed, 1 insertion(+), 3 deletions(-)
arch/x86_64/kernel/entry.S renamed from arch/x86_64/kernel/entry.S~x86_64-minor-microoptimization-in-syscall-entry-slow-path +1 -3
diff -puN arch/x86_64/kernel/entry.S~x86_64-minor-microoptimization-in-syscall-entry-slow-path arch/x86_64/kernel/entry.S
@@ -302,9 +302,7 @@ int_very_careful:
 	leaq 8(%rsp),%rdi	# &ptregs -> arg1	
 	call syscall_trace_leave
 	popq %rdi
-	btr  $TIF_SYSCALL_TRACE,%edi
-	btr  $TIF_SYSCALL_AUDIT,%edi
-	btr  $TIF_SINGLESTEP,%edi
+	andl $~(_TIF_SYSCALL_TRACE|_TIF_SYSCALL_AUDIT|_TIF_SINGLESTEP),%edi
 	jmp int_restore_rest
 	
 int_signal:

_