diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2011-05-04 01:02:15 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2011-05-04 01:02:15 -0400 |
commit | 476eb4912601a8c01e6702b9a029f476b4b131d2 (patch) | |
tree | 2ed0b8c166c7cb46174318fe187f5edc062829be /arch/powerpc/sysdev/xics | |
parent | 65f47f1339dfcffcd5837a307172fb41aa39e479 (diff) |
powerpc/irq: Stop exporting irq_map
First step in eliminating irq_map[] table entirely
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/sysdev/xics')
-rw-r--r-- | arch/powerpc/sysdev/xics/icp-hv.c | 2 | ||||
-rw-r--r-- | arch/powerpc/sysdev/xics/icp-native.c | 2 | ||||
-rw-r--r-- | arch/powerpc/sysdev/xics/ics-rtas.c | 8 | ||||
-rw-r--r-- | arch/powerpc/sysdev/xics/xics-common.c | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/arch/powerpc/sysdev/xics/icp-hv.c b/arch/powerpc/sysdev/xics/icp-hv.c index b03d348b19a..76e87245bbf 100644 --- a/arch/powerpc/sysdev/xics/icp-hv.c +++ b/arch/powerpc/sysdev/xics/icp-hv.c | |||
@@ -58,7 +58,7 @@ static inline void icp_hv_set_qirr(int n_cpu , u8 value) | |||
58 | 58 | ||
59 | static void icp_hv_eoi(struct irq_data *d) | 59 | static void icp_hv_eoi(struct irq_data *d) |
60 | { | 60 | { |
61 | unsigned int hw_irq = (unsigned int)irq_data_to_hw(d); | 61 | unsigned int hw_irq = (unsigned int)irqd_to_hwirq(d); |
62 | 62 | ||
63 | iosync(); | 63 | iosync(); |
64 | icp_hv_set_xirr((xics_pop_cppr() << 24) | hw_irq); | 64 | icp_hv_set_xirr((xics_pop_cppr() << 24) | hw_irq); |
diff --git a/arch/powerpc/sysdev/xics/icp-native.c b/arch/powerpc/sysdev/xics/icp-native.c index be5e3d748ed..d9e0515592c 100644 --- a/arch/powerpc/sysdev/xics/icp-native.c +++ b/arch/powerpc/sysdev/xics/icp-native.c | |||
@@ -80,7 +80,7 @@ static void icp_native_set_cpu_priority(unsigned char cppr) | |||
80 | 80 | ||
81 | static void icp_native_eoi(struct irq_data *d) | 81 | static void icp_native_eoi(struct irq_data *d) |
82 | { | 82 | { |
83 | unsigned int hw_irq = (unsigned int)irq_data_to_hw(d); | 83 | unsigned int hw_irq = (unsigned int)irqd_to_hwirq(d); |
84 | 84 | ||
85 | iosync(); | 85 | iosync(); |
86 | icp_native_set_xirr((xics_pop_cppr() << 24) | hw_irq); | 86 | icp_native_set_xirr((xics_pop_cppr() << 24) | hw_irq); |
diff --git a/arch/powerpc/sysdev/xics/ics-rtas.c b/arch/powerpc/sysdev/xics/ics-rtas.c index 610c148fedc..c782f85cf7e 100644 --- a/arch/powerpc/sysdev/xics/ics-rtas.c +++ b/arch/powerpc/sysdev/xics/ics-rtas.c | |||
@@ -38,7 +38,7 @@ static struct ics ics_rtas = { | |||
38 | 38 | ||
39 | static void ics_rtas_unmask_irq(struct irq_data *d) | 39 | static void ics_rtas_unmask_irq(struct irq_data *d) |
40 | { | 40 | { |
41 | unsigned int hw_irq = (unsigned int)irq_data_to_hw(d); | 41 | unsigned int hw_irq = (unsigned int)irqd_to_hwirq(d); |
42 | int call_status; | 42 | int call_status; |
43 | int server; | 43 | int server; |
44 | 44 | ||
@@ -109,7 +109,7 @@ static void ics_rtas_mask_real_irq(unsigned int hw_irq) | |||
109 | 109 | ||
110 | static void ics_rtas_mask_irq(struct irq_data *d) | 110 | static void ics_rtas_mask_irq(struct irq_data *d) |
111 | { | 111 | { |
112 | unsigned int hw_irq = (unsigned int)irq_data_to_hw(d); | 112 | unsigned int hw_irq = (unsigned int)irqd_to_hwirq(d); |
113 | 113 | ||
114 | pr_devel("xics: mask virq %d [hw 0x%x]\n", d->irq, hw_irq); | 114 | pr_devel("xics: mask virq %d [hw 0x%x]\n", d->irq, hw_irq); |
115 | 115 | ||
@@ -122,7 +122,7 @@ static int ics_rtas_set_affinity(struct irq_data *d, | |||
122 | const struct cpumask *cpumask, | 122 | const struct cpumask *cpumask, |
123 | bool force) | 123 | bool force) |
124 | { | 124 | { |
125 | unsigned int hw_irq = (unsigned int)irq_data_to_hw(d); | 125 | unsigned int hw_irq = (unsigned int)irqd_to_hwirq(d); |
126 | int status; | 126 | int status; |
127 | int xics_status[2]; | 127 | int xics_status[2]; |
128 | int irq_server; | 128 | int irq_server; |
@@ -171,7 +171,7 @@ static struct irq_chip ics_rtas_irq_chip = { | |||
171 | 171 | ||
172 | static int ics_rtas_map(struct ics *ics, unsigned int virq) | 172 | static int ics_rtas_map(struct ics *ics, unsigned int virq) |
173 | { | 173 | { |
174 | unsigned int hw_irq = (unsigned int)irq_map[virq].hwirq; | 174 | unsigned int hw_irq = (unsigned int)virq_to_hw(virq); |
175 | int status[2]; | 175 | int status[2]; |
176 | int rc; | 176 | int rc; |
177 | 177 | ||
diff --git a/arch/powerpc/sysdev/xics/xics-common.c b/arch/powerpc/sysdev/xics/xics-common.c index c58844d7242..a0576b705dd 100644 --- a/arch/powerpc/sysdev/xics/xics-common.c +++ b/arch/powerpc/sysdev/xics/xics-common.c | |||
@@ -240,9 +240,9 @@ void xics_migrate_irqs_away(void) | |||
240 | /* We can't set affinity on ISA interrupts */ | 240 | /* We can't set affinity on ISA interrupts */ |
241 | if (virq < NUM_ISA_INTERRUPTS) | 241 | if (virq < NUM_ISA_INTERRUPTS) |
242 | continue; | 242 | continue; |
243 | if (irq_map[virq].host != xics_host) | 243 | if (virq_to_host(virq) != xics_host) |
244 | continue; | 244 | continue; |
245 | irq = (unsigned int)irq_map[virq].hwirq; | 245 | irq = (unsigned int)virq_to_hw(virq); |
246 | /* We need to get IPIs still. */ | 246 | /* We need to get IPIs still. */ |
247 | if (irq == XICS_IPI || irq == XICS_IRQ_SPURIOUS) | 247 | if (irq == XICS_IPI || irq == XICS_IRQ_SPURIOUS) |
248 | continue; | 248 | continue; |