Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86: Remove TIF_NOHZ

Static keys have replaced TIF_NOHZ to optimize the calls to context
tracking. We can now safely remove that thread flag.

Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Andy Lutomirski <luto@kernel.org>

-3
-1
arch/x86/Kconfig
··· 211 211 select HAVE_STACK_VALIDATION if X86_64 212 212 select HAVE_RSEQ 213 213 select HAVE_SYSCALL_TRACEPOINTS 214 - select HAVE_TIF_NOHZ if X86_64 215 214 select HAVE_UNSTABLE_SCHED_CLOCK 216 215 select HAVE_USER_RETURN_NOTIFIER 217 216 select HAVE_GENERIC_VDSO
-2
arch/x86/include/asm/thread_info.h
··· 92 92 #define TIF_NOCPUID 15 /* CPUID is not accessible in userland */ 93 93 #define TIF_NOTSC 16 /* TSC is not accessible in userland */ 94 94 #define TIF_IA32 17 /* IA32 compatibility process */ 95 - #define TIF_NOHZ 19 /* in adaptive nohz mode */ 96 95 #define TIF_MEMDIE 20 /* is terminating due to OOM killer */ 97 96 #define TIF_POLLING_NRFLAG 21 /* idle is polling for TIF_NEED_RESCHED */ 98 97 #define TIF_IO_BITMAP 22 /* uses I/O bitmap */ ··· 121 122 #define _TIF_NOCPUID (1 << TIF_NOCPUID) 122 123 #define _TIF_NOTSC (1 << TIF_NOTSC) 123 124 #define _TIF_IA32 (1 << TIF_IA32) 124 - #define _TIF_NOHZ (1 << TIF_NOHZ) 125 125 #define _TIF_POLLING_NRFLAG (1 << TIF_POLLING_NRFLAG) 126 126 #define _TIF_IO_BITMAP (1 << TIF_IO_BITMAP) 127 127 #define _TIF_FORCED_TF (1 << TIF_FORCED_TF)