summaryrefslogtreecommitdiff
path: root/arch/mips/netlogic/xlp/wakeup.c
diff options
context:
space:
mode:
authorJayachandran C <jchandra@broadcom.com>2014-04-29 20:07:49 +0530
committerRalf Baechle <ralf@linux-mips.org>2014-05-30 16:49:02 +0200
commit5874743ea8479b780799927f25580ef134547f0f (patch)
treee3e0e661306fc728d06b7a5e8bb8265a91e4d9d3 /arch/mips/netlogic/xlp/wakeup.c
parent0d57eba02d6f0685e61763502962fcf00fd4e4cc (diff)
downloadlinux-5874743ea8479b780799927f25580ef134547f0f.tar.gz
linux-5874743ea8479b780799927f25580ef134547f0f.tar.bz2
linux-5874743ea8479b780799927f25580ef134547f0f.zip
MIPS: Netlogic: Use PRID_IMP_MASK macro
Use PRID_IMP_MASK macro instead of 0xff00 to extract the processor type. Signed-off-by: Jayachandran C <jchandra@broadcom.com> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/6868/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/netlogic/xlp/wakeup.c')
-rw-r--r--arch/mips/netlogic/xlp/wakeup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/netlogic/xlp/wakeup.c b/arch/mips/netlogic/xlp/wakeup.c
index 758923865886..f4823ad6145f 100644
--- a/arch/mips/netlogic/xlp/wakeup.c
+++ b/arch/mips/netlogic/xlp/wakeup.c
@@ -139,7 +139,7 @@ static void xlp_enable_secondary_cores(const cpumask_t *wakeup_mask)
} else {
fusemask = nlm_read_sys_reg(nodep->sysbase,
SYS_EFUSE_DEVICE_CFG_STATUS0);
- switch (read_c0_prid() & 0xff00) {
+ switch (read_c0_prid() & PRID_IMP_MASK) {
case PRID_IMP_NETLOGIC_XLP3XX:
mask = 0xf;
break;