mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-16 02:36:51 +07:00
bd0b9ac405
Most interrupt flow handlers do not use the irq argument. Those few which use it can retrieve the irq number from the irq descriptor. Remove the argument. Search and replace was done with coccinelle and some extra helper scripts around it. Thanks to Julia for her help! Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Julia Lawall <Julia.Lawall@lip6.fr> Cc: Jiang Liu <jiang.liu@linux.intel.com>
67 lines
1.9 KiB
C
67 lines
1.9 KiB
C
/*
|
|
* Copyright 2007-2009 Analog Devices Inc.
|
|
*
|
|
* Licensed under the GPL-2 or later.
|
|
*/
|
|
|
|
#ifndef _IRQ_HANDLER_H
|
|
#define _IRQ_HANDLER_H
|
|
|
|
#include <linux/types.h>
|
|
#include <linux/linkage.h>
|
|
#include <mach/irq.h>
|
|
|
|
/* init functions only */
|
|
extern int init_arch_irq(void);
|
|
extern void init_exception_vectors(void);
|
|
extern void program_IAR(void);
|
|
#ifdef init_mach_irq
|
|
extern void init_mach_irq(void);
|
|
#else
|
|
# define init_mach_irq()
|
|
#endif
|
|
|
|
/* BASE LEVEL interrupt handler routines */
|
|
asmlinkage void evt_exception(void);
|
|
asmlinkage void trap(void);
|
|
asmlinkage void evt_ivhw(void);
|
|
asmlinkage void evt_timer(void);
|
|
asmlinkage void evt_nmi(void);
|
|
asmlinkage void evt_evt7(void);
|
|
asmlinkage void evt_evt8(void);
|
|
asmlinkage void evt_evt9(void);
|
|
asmlinkage void evt_evt10(void);
|
|
asmlinkage void evt_evt11(void);
|
|
asmlinkage void evt_evt12(void);
|
|
asmlinkage void evt_evt13(void);
|
|
asmlinkage void evt_evt14(void);
|
|
asmlinkage void evt_soft_int1(void);
|
|
asmlinkage void evt_system_call(void);
|
|
asmlinkage void init_exception_buff(void);
|
|
asmlinkage void trap_c(struct pt_regs *fp);
|
|
asmlinkage void ex_replaceable(void);
|
|
asmlinkage void early_trap(void);
|
|
|
|
extern void *ex_table[];
|
|
extern void return_from_exception(void);
|
|
|
|
extern int bfin_request_exception(unsigned int exception, void (*handler)(void));
|
|
extern int bfin_free_exception(unsigned int exception, void (*handler)(void));
|
|
|
|
extern asmlinkage void lower_to_irq14(void);
|
|
extern asmlinkage void bfin_return_from_exception(void);
|
|
extern asmlinkage void asm_do_IRQ(unsigned int irq, struct pt_regs *regs);
|
|
extern int bfin_internal_set_wake(unsigned int irq, unsigned int state);
|
|
|
|
struct irq_data;
|
|
extern void bfin_handle_irq(unsigned irq);
|
|
extern void bfin_ack_noop(struct irq_data *);
|
|
extern void bfin_internal_mask_irq(unsigned int irq);
|
|
extern void bfin_internal_unmask_irq(unsigned int irq);
|
|
|
|
struct irq_desc;
|
|
extern void bfin_demux_mac_status_irq(struct irq_desc *);
|
|
extern void bfin_demux_gpio_irq(struct irq_desc *);
|
|
|
|
#endif
|