From: Vaidyanathan Srinivasan Date: Mon, 1 Mar 2010 02:58:16 +0000 (+0000) Subject: powerpc: Move checks in pseries_mach_cpu_die() X-Git-Tag: v2.6.34-rc2~64^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0212f2602a38e740d5a96aba4cebfc2ebc993ecf;p=pandora-kernel.git powerpc: Move checks in pseries_mach_cpu_die() 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 Cc: Gautham R Shenoy Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed