patch-2.1.91 linux/arch/i386/kernel/irq.c

Next file: linux/arch/i386/kernel/process.c
Previous file: linux/arch/alpha/kernel/bios32.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.90/linux/arch/i386/kernel/irq.c linux/arch/i386/kernel/irq.c
@@ -205,7 +205,7 @@
 #ifdef __SMP__
 
 /*
- * The IO-APIC (persent only in SMP boards) has 8 more hardware
+ * The IO-APIC (present only in SMP boards) has 8 more hardware
  * interrupt pins, for all of them we define an IRQ vector:
  *
  * raw PCI interrupts 0-3, basically these are the ones used
@@ -1003,7 +1003,7 @@
 	for (i=0; i<NR_IRQS; i++)
 		for (j=0; j<NR_CPUS; j++)
 			if (kstat.irqs[j][i] != probe_irqs[j][i])
-				irqs &= ~(i<<1);
+				irqs &= ~(1UL << i);
 
 	return irqs;
 }
@@ -1018,7 +1018,7 @@
 			sum += kstat.irqs[j][i];
 			sum -= probe_irqs[j][i];
 		}
-		if (sum && (irqs & (i<<1))) {
+		if (sum && (irqs & (1UL << i))) {
 			if (irq_found != -1) {
 				irq_found = -irq_found;
 				goto out;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov