patch-2.2.18 linux/arch/s390/kernel/s390_ext.c

Next file: linux/arch/s390/kernel/s390_ksyms.c
Previous file: linux/arch/s390/kernel/ptrace.c
Back to the patch index
Back to the overall index

diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.17/arch/s390/kernel/s390_ext.c linux/arch/s390/kernel/s390_ext.c
@@ -13,7 +13,7 @@
 #include <asm/s390_ext.h>
 
 /*
- * Simple hash strategy: index = ((code >> 8) + code) & 0xff;
+ * Simple hash strategy: index = code & 0xff;
  * ext_int_hash[index] is the start of the list for all external interrupts
  * that hash to this index. With the current set of external interrupts 
  * (0x1202 external call, 0x1004 cpu timer, 0x2401 hwc console and 0x4000
@@ -27,7 +27,7 @@
         ext_int_info_t *p;
         int index;
 
-        index = (code + (code >> 8)) & 0xff;
+        index = code & 0xff;
         p = ext_int_hash[index];
         while (p != NULL) {
                 if (p->code == code)
@@ -54,7 +54,7 @@
         ext_int_info_t *p, *q;
         int index;
 
-        index = (code + (code >> 8)) & 0xff;
+        index = code & 0xff;
         q = NULL;
         p = ext_int_hash[index];
         while (p != NULL) {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)