diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2013-05-21 17:30:36 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2013-05-22 01:34:28 +0200 |
commit | f94d9a8ef9aebab5317d11fb1633ba14ad240983 (patch) | |
tree | 5966f1fb50720e3422fe0331f7a2d9a8c7aab488 /arch/mips/kernel/smtc.c | |
parent | MIPS: Idle: Consolidate all declarations in <asm/idle.h>. (diff) | |
download | linux-f94d9a8ef9aebab5317d11fb1633ba14ad240983.tar.xz linux-f94d9a8ef9aebab5317d11fb1633ba14ad240983.zip |
MIPS: Idle: Do address fiddlery in helper functions.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/smtc.c')
-rw-r--r-- | arch/mips/kernel/smtc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/mips/kernel/smtc.c b/arch/mips/kernel/smtc.c index 46303bc61364..75a4fd709841 100644 --- a/arch/mips/kernel/smtc.c +++ b/arch/mips/kernel/smtc.c @@ -914,8 +914,7 @@ void smtc_send_ipi(int cpu, int type, unsigned int action) */ if (cpu_wait == r4k_wait_irqoff) { tcrestart = read_tc_c0_tcrestart(); - if (tcrestart >= (unsigned long)r4k_wait_irqoff - && tcrestart < (unsigned long)__pastwait) { + if (address_is_in_r4k_wait_irqoff(tcrestart)) { write_tc_c0_tcrestart(__pastwait); tcstatus &= ~TCSTATUS_IXMT; write_tc_c0_tcstatus(tcstatus); |