Skip to content

Commit 7c80579

Browse files
KAGA-KOKOFrederic Weisbecker
authored andcommitted
x86/entry: Remove _TIF_NOHZ from _TIF_WORK_SYSCALL_ENTRY
Evaluating _TIF_NOHZ to decide whether to use the slow syscall entry path is not only pointless, it's actually counterproductive: 1) Context tracking code is invoked unconditionally before that flag is evaluated. 2) If the flag is set the slow path is invoked for nothing due to #1 Remove it. Signed-off-by: Thomas Gleixner <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: Andy Lutomirski <[email protected]> Signed-off-by: Frederic Weisbecker <[email protected]>
1 parent bb6d3fb commit 7c80579

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

arch/x86/include/asm/thread_info.h

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,10 @@ struct thread_info {
133133
#define _TIF_X32 (1 << TIF_X32)
134134
#define _TIF_FSCHECK (1 << TIF_FSCHECK)
135135

136-
/*
137-
* work to do in syscall_trace_enter(). Also includes TIF_NOHZ for
138-
* enter_from_user_mode()
139-
*/
136+
/* Work to do before invoking the actual syscall. */
140137
#define _TIF_WORK_SYSCALL_ENTRY \
141138
(_TIF_SYSCALL_TRACE | _TIF_SYSCALL_EMU | _TIF_SYSCALL_AUDIT | \
142-
_TIF_SECCOMP | _TIF_SYSCALL_TRACEPOINT | \
143-
_TIF_NOHZ)
139+
_TIF_SECCOMP | _TIF_SYSCALL_TRACEPOINT)
144140

145141
/* flags to check in __switch_to() */
146142
#define _TIF_WORK_CTXSW_BASE \

0 commit comments

Comments
 (0)