Messages in this thread | | | Date | Sun, 10 Mar 1996 04:18:38 -0600 (CST) | From | Elliot Frisch <> | Subject | IRQs in 1.3.x |
| |
Could someone tell me why the "/usr/src/linux/arch/i386/irq.c" has all of those if-else(s) instead of a switch... (as in the patch)?
Thanks, elliott*** irq.c.orig Sat Mar 9 01:00:14 1996 --- irq.c Sun Mar 10 00:38:12 1996 *************** *** 363,376 **** rand_initialize_irq(irq); save_flags(flags); cli(); ! if (irq == 2) ! action = &cascade_irq; ! else if (irq == 13) ! action = &math_irq; ! else if (irq == TIMER_IRQ) ! action = &timer_irq; ! else ! action = (struct irqaction *)kmalloc(sizeof(struct irqaction), GFP_KERNEL); if (!action) { restore_flags(flags); --- 363,384 ---- rand_initialize_irq(irq); save_flags(flags); cli(); ! ! /* Changed March 10, 1996 <efrisch@wspice.com> */ ! switch(irq) { ! case 2: ! action = &cascade_irq; ! break; ! case 13: ! action = &math_irq; ! break; ! case TIMER_IRQ: ! action = &timer_irq; ! break; ! default: ! action = (struct irqaction *)kmalloc(sizeof(struct irqaction), GFP_KERNEL); ! break; ! } if (!action) { restore_flags(flags);
| |