Skip to content

Commit 320a4fc

Browse files
author
Frederic Weisbecker
committed
arm64: Remove TIF_NOHZ
The syscall slow path is spuriously invoked when context tracking is activated while the entry code calls context tracking from fast path. Remove that overhead and the unused flag itself while at it. Acked-by: Will Deacon <[email protected]> Signed-off-by: Frederic Weisbecker <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: Catalin Marinas <[email protected]> Cc: Will Deacon <[email protected]>
1 parent 1acb224 commit 320a4fc

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

arch/arm64/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ config ARM64
140140
select HAVE_CMPXCHG_DOUBLE
141141
select HAVE_CMPXCHG_LOCAL
142142
select HAVE_CONTEXT_TRACKING
143-
select HAVE_TIF_NOHZ
144143
select HAVE_COPY_THREAD_TLS
145144
select HAVE_DEBUG_BUGVERBOSE
146145
select HAVE_DEBUG_KMEMLEAK

arch/arm64/include/asm/thread_info.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ void arch_release_task_struct(struct task_struct *tsk);
6363
#define TIF_FOREIGN_FPSTATE 3 /* CPU's FP state is not current's */
6464
#define TIF_UPROBE 4 /* uprobe breakpoint or singlestep */
6565
#define TIF_FSCHECK 5 /* Check FS is USER_DS on return */
66-
#define TIF_NOHZ 7
6766
#define TIF_SYSCALL_TRACE 8 /* syscall trace active */
6867
#define TIF_SYSCALL_AUDIT 9 /* syscall auditing */
6968
#define TIF_SYSCALL_TRACEPOINT 10 /* syscall tracepoint for ftrace */
@@ -83,7 +82,6 @@ void arch_release_task_struct(struct task_struct *tsk);
8382
#define _TIF_NEED_RESCHED (1 << TIF_NEED_RESCHED)
8483
#define _TIF_NOTIFY_RESUME (1 << TIF_NOTIFY_RESUME)
8584
#define _TIF_FOREIGN_FPSTATE (1 << TIF_FOREIGN_FPSTATE)
86-
#define _TIF_NOHZ (1 << TIF_NOHZ)
8785
#define _TIF_SYSCALL_TRACE (1 << TIF_SYSCALL_TRACE)
8886
#define _TIF_SYSCALL_AUDIT (1 << TIF_SYSCALL_AUDIT)
8987
#define _TIF_SYSCALL_TRACEPOINT (1 << TIF_SYSCALL_TRACEPOINT)
@@ -100,7 +98,7 @@ void arch_release_task_struct(struct task_struct *tsk);
10098

10199
#define _TIF_SYSCALL_WORK (_TIF_SYSCALL_TRACE | _TIF_SYSCALL_AUDIT | \
102100
_TIF_SYSCALL_TRACEPOINT | _TIF_SECCOMP | \
103-
_TIF_NOHZ | _TIF_SYSCALL_EMU)
101+
_TIF_SYSCALL_EMU)
104102

105103
#define INIT_THREAD_INFO(tsk) \
106104
{ \

0 commit comments

Comments
 (0)