John Baldwin eaf86d1678 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}
2008-03-14 19:41:48 +00:00
..
2005-05-31 15:18:17 +00:00
2007-03-16 13:39:04 +00:00
2006-03-23 08:47:28 +00:00
2007-10-21 17:29:06 +00:00
2007-12-26 16:45:35 +00:00
2006-08-16 09:34:56 +00:00
2008-03-12 18:25:47 +00:00
2005-05-08 11:30:26 +00:00
2007-12-02 00:05:18 +00:00
2006-09-22 22:11:29 +00:00
2007-12-16 06:07:34 +00:00
2007-05-17 16:03:14 +00:00
2007-02-06 16:24:57 +00:00
2005-09-19 08:07:18 +00:00
2006-11-11 16:19:12 +00:00
2008-02-04 12:25:13 +00:00
2006-11-26 11:55:48 +00:00
2007-12-02 20:40:35 +00:00
2006-03-01 06:48:31 +00:00
2006-11-29 19:08:45 +00:00