]> asedeno.scripts.mit.edu Git - linux.git/commit
sched/fair: Move task_numa_work() init to init_numa_balancing()
authorValentin Schneider <valentin.schneider@arm.com>
Mon, 15 Jul 2019 10:25:07 +0000 (11:25 +0100)
committerIngo Molnar <mingo@kernel.org>
Thu, 25 Jul 2019 13:51:51 +0000 (15:51 +0200)
commitb34920d4ce6e6fc9424c20a4be98676eb543122f
treec6292e5bb17d82ae7d3929e11f07a6732b03f79a
parentd35927a144641700c8328d707d1c89d305b4ecb8
sched/fair: Move task_numa_work() init to init_numa_balancing()

We only need to set the callback_head worker function once, do it
during sched_fork().

While at it, move the comment regarding double task_work addition to
init_numa_balancing(), since the double add sentinel is first set there.

Suggested-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Valentin Schneider <valentin.schneider@arm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: mgorman@suse.de
Cc: riel@surriel.com
Link: https://lkml.kernel.org/r/20190715102508.32434-3-valentin.schneider@arm.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/fair.c