Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f9bba75e authored by Atsushi Nemoto's avatar Atsushi Nemoto Committed by Ralf Baechle
Browse files

[MIPS] SMTC build fix



Pass "irq" to __DO_IRQ_SMTC_HOOK() macro.

Signed-off-by: default avatarAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent f860c90b
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -31,14 +31,14 @@ static inline int irq_canonicalize(int irq)
 * functions will take over re-enabling the low-level mask.
 * Otherwise it will be done on return from exception.
 */
#define __DO_IRQ_SMTC_HOOK()						\
#define __DO_IRQ_SMTC_HOOK(irq)						\
do {									\
	if (irq_hwmask[irq] & 0x0000ff00)				\
		write_c0_tccontext(read_c0_tccontext() &		\
		                   ~(irq_hwmask[irq] & 0x0000ff00));	\
} while (0)
#else
#define __DO_IRQ_SMTC_HOOK() do { } while (0)
#define __DO_IRQ_SMTC_HOOK(irq) do { } while (0)
#endif

/*
@@ -52,7 +52,7 @@ do { \
#define do_IRQ(irq)							\
do {									\
	irq_enter();							\
	__DO_IRQ_SMTC_HOOK();						\
	__DO_IRQ_SMTC_HOOK(irq);					\
	generic_handle_irq(irq);					\
	irq_exit();							\
} while (0)