--- zzzz-none-000/linux-2.6.39.4/include/linux/interrupt.h 2011-08-03 19:43:28.000000000 +0000 +++ puma6-atom-6490-729/linux-2.6.39.4/include/linux/interrupt.h 2021-11-10 13:38:17.000000000 +0000 @@ -1,3 +1,8 @@ +/* + * Includes Intel Corporation's changes/modifications dated: 2012. + * Changed/modified portions - Copyright © 2012 , Intel Corporation. + */ + /* interrupt.h */ #ifndef _LINUX_INTERRUPT_H #define _LINUX_INTERRUPT_H @@ -61,6 +66,7 @@ * IRQF_NO_THREAD - Interrupt cannot be threaded */ #define IRQF_DISABLED 0x00000020 +#define SA_INTERRUPT IRQF_DISABLED #define IRQF_SAMPLE_RANDOM 0x00000040 #define IRQF_SHARED 0x00000080 #define IRQF_PROBE_SHARED 0x00000100 @@ -208,6 +214,7 @@ extern void disable_irq_nosync(unsigned int irq); extern void disable_irq(unsigned int irq); extern void enable_irq(unsigned int irq); +extern void ack_irq(unsigned int irq); /* The following three functions are for the core kernel use only. */ #ifdef CONFIG_GENERIC_HARDIRQS @@ -264,20 +271,20 @@ #else /* CONFIG_SMP */ -static inline int irq_set_affinity(unsigned int irq, const struct cpumask *m) +static inline int irq_set_affinity(unsigned int irq __attribute__((unused)), const struct cpumask *m __attribute__((unused))) { return -EINVAL; } -static inline int irq_can_set_affinity(unsigned int irq) +static inline int irq_can_set_affinity(unsigned int irq __attribute__((unused))) { return 0; } -static inline int irq_select_affinity(unsigned int irq) { return 0; } +static inline int irq_select_affinity(unsigned int irq __attribute__((unused))) { return 0; } -static inline int irq_set_affinity_hint(unsigned int irq, - const struct cpumask *m) +static inline int irq_set_affinity_hint(unsigned int irq __attribute__((unused)), + const struct cpumask *m __attribute__((unused))) { return -EINVAL; } @@ -303,7 +310,7 @@ #endif } -static inline void disable_irq_nosync_lockdep_irqsave(unsigned int irq, unsigned long *flags) +static inline void disable_irq_nosync_lockdep_irqsave(unsigned int irq, unsigned long *flags __attribute__((unused))) { disable_irq_nosync(irq); #ifdef CONFIG_LOCKDEP @@ -327,7 +334,7 @@ enable_irq(irq); } -static inline void enable_irq_lockdep_irqrestore(unsigned int irq, unsigned long *flags) +static inline void enable_irq_lockdep_irqrestore(unsigned int irq, unsigned long *flags __attribute__((unused))) { #ifdef CONFIG_LOCKDEP local_irq_restore(*flags);