ARM: virt: use PSR_N_BIT for detecting boot CPU mode mismatch
authorWill Deacon <will.deacon@arm.com>
Sun, 2 Dec 2012 17:44:36 +0000 (17:44 +0000)
committerWill Deacon <will.deacon@arm.com>
Thu, 10 Jan 2013 21:09:32 +0000 (21:09 +0000)
commit4e3c1944808b0278ea4733afcde5cb9421f8a570
tree4e2e78617620b6c0d252dbff98eeaa811e3c0fab
parent8e9c24a2b2e00368262b974d6ea1ac5310570bbe
ARM: virt: use PSR_N_BIT for detecting boot CPU mode mismatch

During boot, we detect whether or not all CPUs are brought up in the
same mode and signal this to the kernel using the N bit in the SPSR.

This patch tidies up the checking code to use the PSR_N_BIT macro,
rather than hardcoding the bit field and commenting it as such.

Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/include/asm/virt.h