Fix a minor bug in lwkt_init_thread() (the thread was being added to the
[dragonfly.git] / sys / kern / kern_intr.c
index c1d5705..e045c6e 100644 (file)
@@ -24,7 +24,7 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
  * $FreeBSD: src/sys/kern/kern_intr.c,v 1.24.2.1 2001/10/14 20:05:50 luigi Exp $
- * $DragonFly: src/sys/kern/kern_intr.c,v 1.9 2003/07/11 01:23:24 dillon Exp $
+ * $DragonFly: src/sys/kern/kern_intr.c,v 1.10 2003/07/25 05:26:50 dillon Exp $
  *
  */
 
@@ -201,11 +201,11 @@ sched_ithd(int intr)
        if (intlists[intr] == NULL) {
            printf("sched_ithd: stray interrupt %d\n", intr);
        } else {
-           if (td->td_cpu == mycpu->gd_cpuid) {
+           if (td->td_gd == mycpu) {
                irunning[intr] = 1;
                lwkt_schedule(td);      /* preemption handled internally */
            } else {
-               lwkt_send_ipiq(td->td_cpu, sched_ithd_remote, (void *)intr);
+               lwkt_send_ipiq(td->td_gd->gd_cpuid, sched_ithd_remote, (void *)intr);
            }
        }
     } else {