Merge tag 'timers-nohz-2020-03-30' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull NOHZ update from Thomas Gleixner: "Remove TIF_NOHZ from three architectures These architectures use a static key to decide whether context tracking needs to be invoked and the TIF_NOHZ flag just causes a pointless slowpath execution for nothing" * tag 'timers-nohz-2020-03-30' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: arm64: Remove TIF_NOHZ arm: Remove TIF_NOHZ x86: Remove TIF_NOHZ context-tracking: Introduce CONFIG_HAVE_TIF_NOHZ x86/entry: Remove _TIF_NOHZ from _TIF_WORK_SYSCALL_ENTRY
This commit is contained in:
@@ -198,11 +198,13 @@ void __init context_tracking_cpu_set(int cpu)
|
||||
if (initialized)
|
||||
return;
|
||||
|
||||
#ifdef CONFIG_HAVE_TIF_NOHZ
|
||||
/*
|
||||
* Set TIF_NOHZ to init/0 and let it propagate to all tasks through fork
|
||||
* This assumes that init is the only task at this early boot stage.
|
||||
*/
|
||||
set_tsk_thread_flag(&init_task, TIF_NOHZ);
|
||||
#endif
|
||||
WARN_ON_ONCE(!tasklist_empty());
|
||||
|
||||
initialized = true;
|
||||
|
Reference in New Issue
Block a user