summaryrefslogtreecommitdiff
path: root/kernel/sched/idle.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2023-09-22 12:16:46 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2023-09-22 12:16:46 -0700
commit5b47b5766b21a59bb247488b374e62c3b72639fb (patch)
tree6806e07d220bedb12d5e2815e2b79d9ac1073012 /kernel/sched/idle.c
parent725e2d7ec8936462d638a146a1359a815f9a5def (diff)
parentcff9b2332ab762b7e0586c793c431a8f2ea4db04 (diff)
downloadlinux-5b47b5766b21a59bb247488b374e62c3b72639fb.tar.gz
linux-5b47b5766b21a59bb247488b374e62c3b72639fb.tar.bz2
linux-5b47b5766b21a59bb247488b374e62c3b72639fb.zip
Merge tag 'sched-urgent-2023-09-22' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull scheduler fix from Ingo Molnar: "Fix a PF_IDLE initialization bug that generated warnings on tiny-RCU" * tag 'sched-urgent-2023-09-22' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: kernel/sched: Modify initial boot task idle setup
Diffstat (limited to 'kernel/sched/idle.c')
-rw-r--r--kernel/sched/idle.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/sched/idle.c b/kernel/sched/idle.c
index 342f58a329f5..5007b25c5bc6 100644
--- a/kernel/sched/idle.c
+++ b/kernel/sched/idle.c
@@ -373,6 +373,7 @@ EXPORT_SYMBOL_GPL(play_idle_precise);
void cpu_startup_entry(enum cpuhp_state state)
{
+ current->flags |= PF_IDLE;
arch_cpu_idle_prepare();
cpuhp_online_idle(state);
while (1)