diff options
author | jhb <jhb@FreeBSD.org> | 2008-03-14 19:41:48 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2008-03-14 19:41:48 +0000 |
commit | 9c113163fb2bb182d320f0228312c13601341163 (patch) | |
tree | c7c725651b1ad4c07a8fe93c253676ef3d6d5279 /sys/ia64 | |
parent | 33dfb1706b9985093bf2f15b13b6d6fcf86e117f (diff) | |
download | FreeBSD-src-9c113163fb2bb182d320f0228312c13601341163.zip FreeBSD-src-9c113163fb2bb182d320f0228312c13601341163.tar.gz |
Add preliminary support for binding interrupts to CPUs:
- Add a new intr_event method ie_assign_cpu() that is invoked when the MI
code wishes to bind an interrupt source to an individual CPU. The MD
code may reject the binding with an error. If an assign_cpu function
is not provided, then the kernel assumes the platform does not support
binding interrupts to CPUs and fails all requests to do so.
- Bind ithreads to CPUs on their next execution loop once an interrupt
event is bound to a CPU. Only shared ithreads are bound. We currently
leave private ithreads for drivers using filters + ithreads in the
INTR_FILTER case unbound.
- A new intr_event_bind() routine is used to bind an interrupt event to
a CPU.
- Implement binding on amd64 and i386 by way of the existing pic_assign_cpu
PIC method.
- For x86, provide a 'intr_bind(IRQ, cpu)' wrapper routine that looks up
an interrupt source and binds its interrupt event to the specified CPU.
MI code can currently (ab)use this by doing:
intr_bind(rman_get_start(irq_res), cpu);
however, I plan to add a truly MI interface (probably a bus_bind_intr(9))
where the implementation in the x86 nexus(4) driver would end up calling
intr_bind() internally.
Requested by: kmacy, gallatin, jeff
Tested on: {amd64, i386} x {regular, INTR_FILTER}
Diffstat (limited to 'sys/ia64')
-rw-r--r-- | sys/ia64/ia64/interrupt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ia64/ia64/interrupt.c b/sys/ia64/ia64/interrupt.c index 5d30566..d832dd8 100644 --- a/sys/ia64/ia64/interrupt.c +++ b/sys/ia64/ia64/interrupt.c @@ -344,7 +344,7 @@ ia64_setup_intr(const char *name, int irq, driver_filter_t filter, #ifdef INTR_FILTER ia64_intr_eoi, ia64_intr_mask, #endif - "irq%u:", irq); + NULL, "irq%u:", irq); if (error) { free(i, M_DEVBUF); return (error); |