Skip to content

Commit 5b47b57

Browse files
committed
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
2 parents 725e2d7 + cff9b23 commit 5b47b57

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

kernel/sched/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9269,7 +9269,7 @@ void __init init_idle(struct task_struct *idle, int cpu)
92699269
* PF_KTHREAD should already be set at this point; regardless, make it
92709270
* look like a proper per-CPU kthread.
92719271
*/
9272-
idle->flags |= PF_IDLE | PF_KTHREAD | PF_NO_SETAFFINITY;
9272+
idle->flags |= PF_KTHREAD | PF_NO_SETAFFINITY;
92739273
kthread_set_per_cpu(idle, cpu);
92749274

92759275
#ifdef CONFIG_SMP

kernel/sched/idle.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,7 @@ EXPORT_SYMBOL_GPL(play_idle_precise);
373373

374374
void cpu_startup_entry(enum cpuhp_state state)
375375
{
376+
current->flags |= PF_IDLE;
376377
arch_cpu_idle_prepare();
377378
cpuhp_online_idle(state);
378379
while (1)

0 commit comments

Comments
 (0)