Files
linux-stable-mirror/include/linux
Valentin Schneider 00b89fe019 sched: Make the idle task quack like a per-CPU kthread
For all intents and purposes, the idle task is a per-CPU kthread. It isn't
created via the same route as other pcpu kthreads however, and as a result
it is missing a few bells and whistles: it fails kthread_is_per_cpu() and
it doesn't have PF_NO_SETAFFINITY set.

Fix the former by giving the idle task a kthread struct along with the
KTHREAD_IS_PER_CPU flag. This requires some extra iffery as init_idle()
call be called more than once on the same idle task.

Signed-off-by: Valentin Schneider <valentin.schneider@arm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20210510151024.2448573-2-valentin.schneider@arm.com
2021-05-18 12:53:53 +02:00
..
2021-04-22 09:26:22 -07:00
2021-05-06 19:24:11 -07:00
2021-05-08 21:49:48 -06:00
2021-05-06 19:24:11 -07:00
2021-04-19 13:13:26 -04:00
2021-05-07 00:26:34 -07:00
2021-04-30 11:20:40 -07:00
2021-05-07 00:26:35 -07:00
2021-04-21 10:24:41 -05:00
2021-05-06 19:24:11 -07:00
2021-04-26 22:55:12 +01:00
2021-05-07 00:26:35 -07:00