aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2020-02-27 16:05:05 +0100
committerThomas Gleixner <tglx@linutronix.de>2020-02-27 16:05:05 +0100
commite4970c9c54d7cb4edc24d82ed27aef69aaf593de (patch)
treefe04ddea22c344d58ae4d7a6e6e276521af910d5 /kernel
parentLinux 5.6-rc1 (diff)
parentarm64: Remove TIF_NOHZ (diff)
downloadlinux-dev-e4970c9c54d7cb4edc24d82ed27aef69aaf593de.tar.xz
linux-dev-e4970c9c54d7cb4edc24d82ed27aef69aaf593de.zip
Merge branch 'arch/nohz' of git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks into timers/nohz
Pull NOHZ updates from Frederic Weisbecker: - Remove TIF_NOHZ from 3 architectures
Diffstat (limited to 'kernel')
-rw-r--r--kernel/context_tracking.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/context_tracking.c b/kernel/context_tracking.c
index 0296b4bda8f1..ce430885c26c 100644
--- a/kernel/context_tracking.c
+++ b/kernel/context_tracking.c
@@ -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;