msm: pm-8x60: Fix bug where device enter low power mode

An incorrect ordering in the check of allowed modes, results in
standalone power collapse not getting selected when the secondary
cores are online.

Change-Id: Idc7177b78bd0ce7563cc27afbf6c12d3bc1f9f9a
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
___________

msm: headsmp: Fix section mismatch warning

WARNING: vmlinux.o(.text+0x19c94): Section mismatch in reference
from the variable pen to the function
.cpuinit.text:secondary_startup()
The function pen() references
the function __cpuinit secondary_startup().
This is often because pen lacks a __cpuinit
annotation or the annotation of secondary_startup is wrong.

We use __ref for pm code because generic cpu hotplug code uses
__ref.  Fixing that problem is much larger in scope and the pm
code is correctly using the symbol.

Change-Id: I13906d525683d91def39703942ba1c8850b73494
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>