Skip to content

Commit 71d218b

Browse files
Ingo MolnarLinus Torvalds
authored andcommitted
[PATCH] genirq: cleanup: include/linux/irq.h
Small cleanups in include/linux/irq.h. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 34ffdb7 commit 71d218b

1 file changed

Lines changed: 28 additions & 28 deletions

File tree

‎include/linux/irq.h‎

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,17 @@
4545
* to describe about the low-level hardware.
4646
*/
4747
struct hw_interrupt_type {
48-
const char *typename;
49-
unsigned int (*startup)(unsigned int irq);
50-
void (*shutdown)(unsigned int irq);
51-
void (*enable)(unsigned int irq);
52-
void (*disable)(unsigned int irq);
53-
void (*ack)(unsigned int irq);
54-
void (*end)(unsigned int irq);
55-
void (*set_affinity)(unsigned int irq, cpumask_t dest);
48+
const char *typename;
49+
unsigned int (*startup)(unsigned int irq);
50+
void (*shutdown)(unsigned int irq);
51+
void (*enable)(unsigned int irq);
52+
void (*disable)(unsigned int irq);
53+
void (*ack)(unsigned int irq);
54+
void (*end)(unsigned int irq);
55+
void (*set_affinity)(unsigned int irq, cpumask_t dest);
5656
/* Currently used only by UML, might disappear one day.*/
5757
#ifdef CONFIG_IRQ_RELEASE_METHOD
58-
void (*release)(unsigned int irq, void *dev_id);
58+
void (*release)(unsigned int irq, void *dev_id);
5959
#endif
6060
};
6161

@@ -69,19 +69,19 @@ typedef struct hw_interrupt_type hw_irq_controller;
6969
* Pad this out to 32 bytes for cache and indexing reasons.
7070
*/
7171
struct irq_desc {
72-
hw_irq_controller *chip;
73-
void *chip_data;
74-
struct irqaction *action; /* IRQ action list */
75-
unsigned int status; /* IRQ status */
76-
unsigned int depth; /* nested irq disables */
77-
unsigned int irq_count; /* For detecting broken interrupts */
78-
unsigned int irqs_unhandled;
79-
spinlock_t lock;
72+
hw_irq_controller *chip;
73+
void *chip_data;
74+
struct irqaction *action; /* IRQ action list */
75+
unsigned int status; /* IRQ status */
76+
unsigned int depth; /* nested irq disables */
77+
unsigned int irq_count; /* For detecting broken IRQs */
78+
unsigned int irqs_unhandled;
79+
spinlock_t lock;
8080
#ifdef CONFIG_SMP
81-
cpumask_t affinity;
81+
cpumask_t affinity;
8282
#endif
8383
#if defined(CONFIG_GENERIC_PENDING_IRQ) || defined(CONFIG_IRQBALANCE)
84-
unsigned int move_irq; /* Flag need to re-target intr dest*/
84+
unsigned int move_irq; /* need to re-target IRQ dest */
8585
#endif
8686
} ____cacheline_aligned;
8787

@@ -186,6 +186,15 @@ static inline void set_balance_irq_affinity(unsigned int irq, cpumask_t mask)
186186
}
187187
#endif
188188

189+
#ifdef CONFIG_AUTO_IRQ_AFFINITY
190+
extern int select_smp_affinity(unsigned int irq);
191+
#else
192+
static inline int select_smp_affinity(unsigned int irq)
193+
{
194+
return 1;
195+
}
196+
#endif
197+
189198
extern int no_irq_affinity;
190199
extern int noirqdebug_setup(char *str);
191200

@@ -202,15 +211,6 @@ extern int can_request_irq(unsigned int irq, unsigned long irqflags);
202211

203212
extern void init_irq_proc(void);
204213

205-
#ifdef CONFIG_AUTO_IRQ_AFFINITY
206-
extern int select_smp_affinity(unsigned int irq);
207-
#else
208-
static inline int select_smp_affinity(unsigned int irq)
209-
{
210-
return 1;
211-
}
212-
#endif
213-
214214
#endif /* CONFIG_GENERIC_HARDIRQS */
215215

216216
extern hw_irq_controller no_irq_type; /* needed in every arch ? */

0 commit comments

Comments
 (0)