]> git.baikalelectronics.ru Git - kernel.git/commit
nohz: Move idle balancer registration to the idle path
authorFrederic Weisbecker <fweisbec@gmail.com>
Mon, 19 Jun 2017 02:12:01 +0000 (04:12 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 22 Jun 2017 09:30:01 +0000 (11:30 +0200)
commit770600eb20f60a382cffb9c4c01617f581a8f4a0
treed9bfbe541b9e7e83f304932da94a5053e934aae5
parent88c9a593d35d7751cb6ec4d50899bd3b70f07ff3
nohz: Move idle balancer registration to the idle path

The idle load balancing registration path assumes that we only stop the
tick when the CPU is idle, ignoring the nohz full case. As a result, a
nohz full CPU that is running a task may be chosen to perform idle load
balancing.

Lets make sure that only CPUs in dynticks idle mode can be picked as
idle load balancers.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Acked-by: Rik van Riel <riel@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1497838322-10913-3-git-send-email-fweisbec@gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/time/tick-sched.c