MIPS: Make do_IRQ() available for assembly callers

As from commit 8f99a16265 ("MIPS: Tracing: Add IRQENTRY_EXIT section
for MIPS") do_IRQ() is not a macro anymore and can be invoked directly
from assembly code again, however its `asmlinkage' annotation has never
been brought back from the previous removal of the function with commit
187933f236 ("[MIPS] do_IRQ cleanup").

Since calling the function directly from assembly code has a performance
advantage, add the annotation back so that the DEC platform can make use
of this again.

Signed-off-by: Maciej W. Rozycki <macro@orcam.me.uk>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
This commit is contained in:
Maciej W. Rozycki
2026-05-04 21:13:55 +01:00
committed by Thomas Bogendoerfer
parent 8e0780d30b
commit a032121b27
2 changed files with 2 additions and 2 deletions

View File

@@ -54,7 +54,7 @@ static inline int irq_canonicalize(int irq)
asmlinkage void plat_irq_dispatch(void);
extern void do_IRQ(unsigned int irq);
asmlinkage void do_IRQ(unsigned int irq);
struct irq_domain;
extern void do_domain_IRQ(struct irq_domain *domain, unsigned int irq);

View File

@@ -100,7 +100,7 @@ static inline void check_stack_overflow(void) {}
* SMP cross-CPU interrupts have their own specific
* handlers).
*/
void __irq_entry do_IRQ(unsigned int irq)
asmlinkage void __irq_entry do_IRQ(unsigned int irq)
{
irq_enter();
check_stack_overflow();