]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
powerpc: Move checks in pseries_mach_cpu_die()
authorVaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>
Mon, 1 Mar 2010 02:58:16 +0000 (02:58 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 12 May 2010 22:02:54 +0000 (15:02 -0700)
commit815d3145a7836f6c03671a2d1a009123869ea5f2
treeb998646ed0213ff791d069b41cc855a7fdab315a
parenta3cbce7a301b4291814296fda0ec571fcc0a1c2e
powerpc: Move checks in pseries_mach_cpu_die()

commit 0212f2602a38e740d5a96aba4cebfc2ebc993ecf upstream.

Rearrange condition checks for better code readability and
prevention of possible race conditions when
preferred_offline_state can potentially change during the
execution of pseries_mach_cpu_die().  The patch will make
pseries_mach_cpu_die() put cpu in one of the consistent states
and not hit the run over BUG()

Signed-off-by: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>
Cc: Gautham R Shenoy <ego@in.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/powerpc/platforms/pseries/hotplug-cpu.c