[MIPS] SMTC build fix
Pass "irq" to __DO_IRQ_SMTC_HOOK() macro. Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
f860c90bd6
commit
f9bba75e37
|
@ -31,14 +31,14 @@ static inline int irq_canonicalize(int irq)
|
||||||
* functions will take over re-enabling the low-level mask.
|
* functions will take over re-enabling the low-level mask.
|
||||||
* Otherwise it will be done on return from exception.
|
* Otherwise it will be done on return from exception.
|
||||||
*/
|
*/
|
||||||
#define __DO_IRQ_SMTC_HOOK() \
|
#define __DO_IRQ_SMTC_HOOK(irq) \
|
||||||
do { \
|
do { \
|
||||||
if (irq_hwmask[irq] & 0x0000ff00) \
|
if (irq_hwmask[irq] & 0x0000ff00) \
|
||||||
write_c0_tccontext(read_c0_tccontext() & \
|
write_c0_tccontext(read_c0_tccontext() & \
|
||||||
~(irq_hwmask[irq] & 0x0000ff00)); \
|
~(irq_hwmask[irq] & 0x0000ff00)); \
|
||||||
} while (0)
|
} while (0)
|
||||||
#else
|
#else
|
||||||
#define __DO_IRQ_SMTC_HOOK() do { } while (0)
|
#define __DO_IRQ_SMTC_HOOK(irq) do { } while (0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -52,7 +52,7 @@ do { \
|
||||||
#define do_IRQ(irq) \
|
#define do_IRQ(irq) \
|
||||||
do { \
|
do { \
|
||||||
irq_enter(); \
|
irq_enter(); \
|
||||||
__DO_IRQ_SMTC_HOOK(); \
|
__DO_IRQ_SMTC_HOOK(irq); \
|
||||||
generic_handle_irq(irq); \
|
generic_handle_irq(irq); \
|
||||||
irq_exit(); \
|
irq_exit(); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
Loading…
Reference in New Issue