powerpc/pmac/smp: Fix CPU hotplug crashes on some machines
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 8 Mar 2011 02:54:50 +0000 (13:54 +1100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 1 Apr 2011 04:37:31 +0000 (15:37 +1100)
commit734796f12351f9a0f38c47b981414f82d852f222
tree6a159233b7ab08b420a59e518ce2b99bb2002b07
parentd72944457bb7d5c4be43aa1b741cb93c69484c20
powerpc/pmac/smp: Fix CPU hotplug crashes on some machines

On some machines that use i2c to synchronize the timebases (such
as PowerMac7,2/7,3 G5 machines), hotplug CPU would crash when
putting back a new CPU online due to the underlying i2c bus being
closed.

This uses the newly added bringup_done() callback to move the close
along with other housekeeping calls, and adds a CPU notifier to
re-open the i2c bus around subsequent hotplug operations

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/powermac/smp.c