diff options
Diffstat (limited to 'include/linux/sh_intc.h')
-rw-r--r-- | include/linux/sh_intc.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/linux/sh_intc.h b/include/linux/sh_intc.h index f0e8cca199c7..0d6cd38e673d 100644 --- a/include/linux/sh_intc.h +++ b/include/linux/sh_intc.h | |||
@@ -23,6 +23,9 @@ struct intc_group { | |||
23 | struct intc_mask_reg { | 23 | struct intc_mask_reg { |
24 | unsigned long set_reg, clr_reg, reg_width; | 24 | unsigned long set_reg, clr_reg, reg_width; |
25 | intc_enum enum_ids[32]; | 25 | intc_enum enum_ids[32]; |
26 | #ifdef CONFIG_INTC_BALANCING | ||
27 | unsigned long dist_reg; | ||
28 | #endif | ||
26 | #ifdef CONFIG_SMP | 29 | #ifdef CONFIG_SMP |
27 | unsigned long smp; | 30 | unsigned long smp; |
28 | #endif | 31 | #endif |
@@ -41,8 +44,14 @@ struct intc_sense_reg { | |||
41 | intc_enum enum_ids[16]; | 44 | intc_enum enum_ids[16]; |
42 | }; | 45 | }; |
43 | 46 | ||
47 | #ifdef CONFIG_INTC_BALANCING | ||
48 | #define INTC_SMP_BALANCING(reg) .dist_reg = (reg) | ||
49 | #else | ||
50 | #define INTC_SMP_BALANCING(reg) | ||
51 | #endif | ||
52 | |||
44 | #ifdef CONFIG_SMP | 53 | #ifdef CONFIG_SMP |
45 | #define INTC_SMP(stride, nr) .smp = (stride) | ((nr) << 8) | 54 | #define INTC_SMP(stride, nr) .smp = (stride) | ((nr) << 8) |
46 | #else | 55 | #else |
47 | #define INTC_SMP(stride, nr) | 56 | #define INTC_SMP(stride, nr) |
48 | #endif | 57 | #endif |