diff options
| author | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2009-10-06 11:36:55 -0400 |
|---|---|---|
| committer | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2009-10-06 11:36:55 -0400 |
| commit | d94e5fcbf1420366dcb4102bafe04dbcfc0d0d4b (patch) | |
| tree | a9b7de7df6da5c3132cc68169b9c47ba288ccd42 /kernel/irq/internals.h | |
| parent | d55651168a20078a94597a297d5cdfd807bf07b6 (diff) | |
| parent | 374576a8b6f865022c0fd1ca62396889b23d66dd (diff) | |
Merge commit 'v2.6.32-rc3'
Diffstat (limited to 'kernel/irq/internals.h')
| -rw-r--r-- | kernel/irq/internals.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/kernel/irq/internals.h b/kernel/irq/internals.h index e70ed5592eb9..1b5d742c6a77 100644 --- a/kernel/irq/internals.h +++ b/kernel/irq/internals.h | |||
| @@ -44,6 +44,19 @@ extern int irq_select_affinity_usr(unsigned int irq); | |||
| 44 | 44 | ||
| 45 | extern void irq_set_thread_affinity(struct irq_desc *desc); | 45 | extern void irq_set_thread_affinity(struct irq_desc *desc); |
| 46 | 46 | ||
| 47 | /* Inline functions for support of irq chips on slow busses */ | ||
| 48 | static inline void chip_bus_lock(unsigned int irq, struct irq_desc *desc) | ||
| 49 | { | ||
| 50 | if (unlikely(desc->chip->bus_lock)) | ||
| 51 | desc->chip->bus_lock(irq); | ||
| 52 | } | ||
| 53 | |||
| 54 | static inline void chip_bus_sync_unlock(unsigned int irq, struct irq_desc *desc) | ||
| 55 | { | ||
| 56 | if (unlikely(desc->chip->bus_sync_unlock)) | ||
| 57 | desc->chip->bus_sync_unlock(irq); | ||
| 58 | } | ||
| 59 | |||
| 47 | /* | 60 | /* |
| 48 | * Debugging printout: | 61 | * Debugging printout: |
| 49 | */ | 62 | */ |
