[PATCH] ARM: smp: return from ipi_cpu_stop()

Russell King - ARM Linux linux at arm.linux.org.uk
Sat Jan 5 09:09:58 EST 2013


On Sat, Jan 05, 2013 at 02:05:23PM +0100, Ulrich Hecht wrote:
> ipi_cpu_stop() is supposed to mark a CPU offline, but it's the job of the
> idle thread to actually shut it down.

Wrong.  Where do you get that idea from?

If you look at what x86 does, you'll notice that it too puts the CPU
into a busy loop.

Plus, there's no guarantee what so ever that anything will happen in the
idle loop; this is not the _normal_ CPU shutdown path, this is the "oh
fsck, we need to stop all other CPUs because we panic'd" handler.



More information about the linux-arm-kernel mailing list