diff options
author | Jonas Bonn <jonas@southpole.se> | 2012-09-21 03:17:32 -0400 |
---|---|---|
committer | Jonas Bonn <jonas@southpole.se> | 2012-10-11 05:27:25 -0400 |
commit | f248ef1cd39dc9900cca5bf0a51b1e80081ecc67 (patch) | |
tree | 84a29108741526d556d37d5140f9bfa401e0633b /arch/openrisc | |
parent | 9b76beb071be6fbfd0743feedfdd844f57d4f345 (diff) |
openrisc: PIC should act on domain-local irqs
Now that IRQ domains are in use, we should be acting on domain-local
IRQ numbers (hwirq) instead of 'global' ones.
Signed-off-by: Jonas Bonn <jonas@southpole.se>
Diffstat (limited to 'arch/openrisc')
-rw-r--r-- | arch/openrisc/kernel/irq.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/openrisc/kernel/irq.c b/arch/openrisc/kernel/irq.c index e935b9d8eee1..094c394eee5b 100644 --- a/arch/openrisc/kernel/irq.c +++ b/arch/openrisc/kernel/irq.c | |||
@@ -46,12 +46,12 @@ EXPORT_SYMBOL(arch_local_irq_restore); | |||
46 | 46 | ||
47 | static void or1k_pic_mask(struct irq_data *data) | 47 | static void or1k_pic_mask(struct irq_data *data) |
48 | { | 48 | { |
49 | mtspr(SPR_PICMR, mfspr(SPR_PICMR) & ~(1UL << data->irq)); | 49 | mtspr(SPR_PICMR, mfspr(SPR_PICMR) & ~(1UL << data->hwirq)); |
50 | } | 50 | } |
51 | 51 | ||
52 | static void or1k_pic_unmask(struct irq_data *data) | 52 | static void or1k_pic_unmask(struct irq_data *data) |
53 | { | 53 | { |
54 | mtspr(SPR_PICMR, mfspr(SPR_PICMR) | (1UL << data->irq)); | 54 | mtspr(SPR_PICMR, mfspr(SPR_PICMR) | (1UL << data->hwirq)); |
55 | } | 55 | } |
56 | 56 | ||
57 | static void or1k_pic_ack(struct irq_data *data) | 57 | static void or1k_pic_ack(struct irq_data *data) |
@@ -75,10 +75,10 @@ static void or1k_pic_ack(struct irq_data *data) | |||
75 | * as opposed to a 1 as mandated by the spec | 75 | * as opposed to a 1 as mandated by the spec |
76 | */ | 76 | */ |
77 | 77 | ||
78 | mtspr(SPR_PICSR, mfspr(SPR_PICSR) & ~(1UL << data->irq)); | 78 | mtspr(SPR_PICSR, mfspr(SPR_PICSR) & ~(1UL << data->hwirq)); |
79 | #else | 79 | #else |
80 | WARN(1, "Interrupt handling possibily broken\n"); | 80 | WARN(1, "Interrupt handling possibily broken\n"); |
81 | mtspr(SPR_PICSR, (1UL << irq)); | 81 | mtspr(SPR_PICSR, (1UL << data->hwirq)); |
82 | #endif | 82 | #endif |
83 | } | 83 | } |
84 | 84 | ||
@@ -87,10 +87,10 @@ static void or1k_pic_mask_ack(struct irq_data *data) | |||
87 | /* Comments for pic_ack apply here, too */ | 87 | /* Comments for pic_ack apply here, too */ |
88 | 88 | ||
89 | #ifdef CONFIG_OR1K_1200 | 89 | #ifdef CONFIG_OR1K_1200 |
90 | mtspr(SPR_PICSR, mfspr(SPR_PICSR) & ~(1UL << data->irq)); | 90 | mtspr(SPR_PICSR, mfspr(SPR_PICSR) & ~(1UL << data->hwirq)); |
91 | #else | 91 | #else |
92 | WARN(1, "Interrupt handling possibily broken\n"); | 92 | WARN(1, "Interrupt handling possibily broken\n"); |
93 | mtspr(SPR_PICSR, (1UL << irq)); | 93 | mtspr(SPR_PICSR, (1UL << data->hwirq)); |
94 | #endif | 94 | #endif |
95 | } | 95 | } |
96 | 96 | ||