]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ARM: bL_switcher: wait until inbound is alive before performing a switch
authorNicolas Pitre <nicolas.pitre@linaro.org>
Fri, 14 Jun 2013 03:51:18 +0000 (23:51 -0400)
committerNicolas Pitre <nicolas.pitre@linaro.org>
Mon, 23 Sep 2013 22:47:29 +0000 (18:47 -0400)
commit6137eba6c2b9bc2b7fd52e77741f50e43db4b5a6
tree57fe4cd3d01b6c87c3f276a5044ec7cd59681530
parent14d2ca615a85e2dbc744c12c296affd35f119fa7
ARM: bL_switcher: wait until inbound is alive before performing a switch

In some cases, a significant delay may be observed between the moment
a request for a CPU to come up is made and the moment it is ready to
start executing kernel code.  This is especially true when a whole
cluster has to be powered up which may take in the order of miliseconds.
It is therefore a good idea to let the outbound CPU continue to execute
code in the mean time, and be notified when the inbound is ready before
performing the actual switch.

This is achieved by registering a completion block with the appropriate
IPI callback, and programming the sending of an IPI by the early assembly
code prior to entering the main kernel code.  Once the IPI is delivered
to the outbound CPU, the completion block is "completed" and the switcher
thread is resumed.

Signed-off-by: Nicolas Pitre <nico@linaro.org>
arch/arm/common/bL_switcher.c