diff options
author | Geoff Levand <geoffrey.levand@am.sony.com> | 2007-01-26 22:08:08 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-02-06 22:03:18 -0500 |
commit | 861be32ce7f1cf272a3f809e77213b83117a0bd2 (patch) | |
tree | 5765d9227e3dd87582b586d16755e843695f0dd8 /include/asm-powerpc | |
parent | 9cf9e19667f6ce01bd509a154157270069f836f9 (diff) |
[POWERPC] ps3: bind interrupt to cpu
Change the PS3 irq allocation routines to take an argument indicating which
cpu (processor thread) the interrupt should be serviced on.
The current system configuration favors device interrupts that are serviced
on cpu0, so that is used as the default.
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Acked-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc')
-rw-r--r-- | include/asm-powerpc/ps3.h | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/include/asm-powerpc/ps3.h b/include/asm-powerpc/ps3.h index 8fed3a041dee..021f802161a6 100644 --- a/include/asm-powerpc/ps3.h +++ b/include/asm-powerpc/ps3.h | |||
@@ -140,19 +140,28 @@ unsigned long ps3_mm_phys_to_lpar(unsigned long phys_addr); | |||
140 | 140 | ||
141 | /* inrerrupt routines */ | 141 | /* inrerrupt routines */ |
142 | 142 | ||
143 | int ps3_alloc_io_irq(unsigned int interrupt_id, unsigned int *virq); | 143 | enum ps3_cpu_binding { |
144 | PS3_BINDING_CPU_ANY = -1, | ||
145 | PS3_BINDING_CPU_0 = 0, | ||
146 | PS3_BINDING_CPU_1 = 1, | ||
147 | }; | ||
148 | |||
149 | int ps3_alloc_io_irq(enum ps3_cpu_binding cpu, unsigned int interrupt_id, | ||
150 | unsigned int *virq); | ||
144 | int ps3_free_io_irq(unsigned int virq); | 151 | int ps3_free_io_irq(unsigned int virq); |
145 | int ps3_alloc_event_irq(unsigned int *virq); | 152 | int ps3_alloc_event_irq(enum ps3_cpu_binding cpu, unsigned int *virq); |
146 | int ps3_free_event_irq(unsigned int virq); | 153 | int ps3_free_event_irq(unsigned int virq); |
147 | int ps3_send_event_locally(unsigned int virq); | 154 | int ps3_send_event_locally(unsigned int virq); |
148 | int ps3_connect_event_irq(const struct ps3_device_id *did, | 155 | int ps3_connect_event_irq(enum ps3_cpu_binding cpu, |
149 | unsigned int interrupt_id, unsigned int *virq); | 156 | const struct ps3_device_id *did, unsigned int interrupt_id, |
157 | unsigned int *virq); | ||
150 | int ps3_disconnect_event_irq(const struct ps3_device_id *did, | 158 | int ps3_disconnect_event_irq(const struct ps3_device_id *did, |
151 | unsigned int interrupt_id, unsigned int virq); | 159 | unsigned int interrupt_id, unsigned int virq); |
152 | int ps3_alloc_vuart_irq(void* virt_addr_bmp, unsigned int *virq); | 160 | int ps3_alloc_vuart_irq(enum ps3_cpu_binding cpu, void* virt_addr_bmp, |
153 | int ps3_free_vuart_irq(unsigned int virq); | ||
154 | int ps3_alloc_spe_irq(unsigned long spe_id, unsigned int class, | ||
155 | unsigned int *virq); | 161 | unsigned int *virq); |
162 | int ps3_free_vuart_irq(unsigned int virq); | ||
163 | int ps3_alloc_spe_irq(enum ps3_cpu_binding cpu, unsigned long spe_id, | ||
164 | unsigned int class, unsigned int *virq); | ||
156 | int ps3_free_spe_irq(unsigned int virq); | 165 | int ps3_free_spe_irq(unsigned int virq); |
157 | 166 | ||
158 | /* lv1 result codes */ | 167 | /* lv1 result codes */ |