diff options
Diffstat (limited to 'include/linux/interrupt.h')
-rw-r--r-- | include/linux/interrupt.h | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h index f48e8ff241b8..7ed1d4609f70 100644 --- a/include/linux/interrupt.h +++ b/include/linux/interrupt.h @@ -124,21 +124,8 @@ struct irqaction { extern irqreturn_t no_action(int cpl, void *dev_id); #ifdef CONFIG_IRQ_TIMINGS -/** - * timing handler to be called when an interrupt happens - */ -typedef void (*irqt_handler_t)(unsigned int, ktime_t, void *, void *); -/** - * struct irqtimings - per interrupt irq timings descriptor - * @handler: interrupt handler timings function - * @data: pointer to the private data to be passed to the handler - * @timestamp: latest interruption occurence - */ -struct irqtimings { - irqt_handler_t handler; - void *data; -} ____cacheline_internodealigned_in_smp; +typedef void (*irqt_handler_t)(unsigned int, ktime_t, void *); /** * struct irqt_ops - structure to be used by the subsystem to call the @@ -151,21 +138,10 @@ struct irqtimings { struct irqtimings_ops { int (*setup)(unsigned int, struct irqaction *); void (*free)(unsigned int, void *); + irqt_handler_t handler; }; extern int register_irq_timings(struct irqtimings_ops *ops); -extern int setup_irq_timings(unsigned int irq, struct irqaction *act); -extern void free_irq_timings(unsigned int irq, void *dev_id); -#else -static inline int setup_irq_timings(unsigned int irq, struct irqaction *act) -{ - return 0; -} - -static inline void free_irq_timings(unsigned int irq, void *dev_id) -{ - ; -} #endif extern int __must_check |