lkml.org 
[lkml]   [1996]   [Mar]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectIRQs 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);
\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.030 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site