MIPS: cevt-r4k: Use CAUSEF_TI, CAUSEF_PCI constants
Use CAUSEF_TI and CAUSEF_PCI constants from asm/mipsregs.h rather than the magic values (1 << 30) and (1 << 26). Signed-off-by: James Hogan <james.hogan@imgtec.com> Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/9124/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:

committato da
Ralf Baechle

parent
19971c0bcb
commit
3ba5040af0
@@ -246,7 +246,7 @@ static int mipsxx_perfcount_handler(void)
|
||||
unsigned int counter;
|
||||
int handled = IRQ_NONE;
|
||||
|
||||
if (cpu_has_mips_r2 && !(read_c0_cause() & (1 << 26)))
|
||||
if (cpu_has_mips_r2 && !(read_c0_cause() & CAUSEF_PCI))
|
||||
return handled;
|
||||
|
||||
switch (counters) {
|
||||
|
Fai riferimento in un nuovo problema
Block a user