]> git.baikalelectronics.ru Git - kernel.git/commit
cpu: Make CPU-offline idle-loop transition point more precise
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 28 Jan 2015 22:09:43 +0000 (14:09 -0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 12 Mar 2015 22:19:37 +0000 (15:19 -0700)
commit28cfab78cdfa06d54cf6e94a712ca11f2f436a0a
tree449e267d06f42020bcaaae7a218710112bedd38e
parent4cc60223eefa7bb423e94c41cb8985d852df1e40
cpu: Make CPU-offline idle-loop transition point more precise

This commit uses a per-CPU variable to make the CPU-offline code path
through the idle loop more precise, so that the outgoing CPU is
guaranteed to make it into the idle loop before it is powered off.
This commit is in preparation for putting the RCU offline-handling
code on this code path, which will eliminate the magic one-jiffy
wait that RCU uses as the maximum time for an outgoing CPU to get
all the way through the scheduler.

The magic one-jiffy wait for incoming CPUs remains a separate issue.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/cpu.c
kernel/sched/idle.c