linux-stable-rt/arch/powerpc/platforms/pseries
Sebastien Dugue b906cfa397 powerpc/pseries: Fix cpu hotplug
Currently, pseries_cpu_die() calls msleep() while polling RTAS for
the status of the dying cpu.

However, if the cpu that is going down also happens to be the one
doing the tick then we're hosed as the tick_do_timer_cpu 'baton' is
only passed later on in tick_shutdown() when _cpu_down() does the
CPU_DEAD notification.  Therefore jiffies won't be updated anymore.

This replaces that msleep() with a cpu_relax() to make sure we're not
going to schedule at that point.

With this patch my test box survives a 100k iterations hotplug stress
test on _all_ cpus, whereas without it, it quickly dies after ~50
iterations.

Signed-off-by: Sebastien Dugue <sebastien.dugue@bull.net>
Cc: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2008-12-23 15:13:27 +11:00
..
Kconfig powerpc: Disable Collaborative Memory Manager for kdump 2008-12-21 14:21:15 +11:00
Makefile
cmm.c powerpc: Add reboot notifier to Collaborative Memory Manager 2008-12-21 14:21:15 +11:00
eeh.c
eeh_cache.c
eeh_driver.c
eeh_event.c
eeh_sysfs.c
firmware.c
hotplug-cpu.c powerpc/pseries: Fix cpu hotplug 2008-12-23 15:13:27 +11:00
hotplug-memory.c
hvCall.S
hvCall_inst.c
hvconsole.c
hvcserver.c
iommu.c
kexec.c
lpar.c
msi.c
nvram.c
pci.c
pci_dlpar.c
phyp_dump.c powerpc: Pass a valid token to rtas_call() in phyp-dump code 2008-12-21 14:21:15 +11:00
plpar_wrappers.h
power.c
pseries.h
ras.c
reconfig.c
rtasd.c
scanlog.c
setup.c
smp.c
xics.c
xics.h