Commit 5b47b576 authored by Linus Torvalds's avatar Linus Torvalds

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
parents 725e2d7e cff9b233
...@@ -9269,7 +9269,7 @@ void __init init_idle(struct task_struct *idle, int cpu) ...@@ -9269,7 +9269,7 @@ void __init init_idle(struct task_struct *idle, int cpu)
* PF_KTHREAD should already be set at this point; regardless, make it * PF_KTHREAD should already be set at this point; regardless, make it
* look like a proper per-CPU kthread. * look like a proper per-CPU kthread.
*/ */
idle->flags |= PF_IDLE | PF_KTHREAD | PF_NO_SETAFFINITY; idle->flags |= PF_KTHREAD | PF_NO_SETAFFINITY;
kthread_set_per_cpu(idle, cpu); kthread_set_per_cpu(idle, cpu);
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
......
...@@ -373,6 +373,7 @@ EXPORT_SYMBOL_GPL(play_idle_precise); ...@@ -373,6 +373,7 @@ EXPORT_SYMBOL_GPL(play_idle_precise);
void cpu_startup_entry(enum cpuhp_state state) void cpu_startup_entry(enum cpuhp_state state)
{ {
current->flags |= PF_IDLE;
arch_cpu_idle_prepare(); arch_cpu_idle_prepare();
cpuhp_online_idle(state); cpuhp_online_idle(state);
while (1) while (1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment