powerpc: iSeries has only 256 IRQs
[deliverable/linux.git] / arch / powerpc / platforms / iseries / setup.c
index 6ce8a404ba6b2b9cd8f5ccbccbb1888b441df1ba..a6fd9bedb0741b533fc207650a128ef1c35070ec 100644 (file)
@@ -54,6 +54,7 @@
 #include <asm/iseries/hv_lp_event.h>
 #include <asm/iseries/lpar_map.h>
 #include <asm/udbg.h>
+#include <asm/irq.h>
 
 #include "naca.h"
 #include "setup.h"
@@ -684,6 +685,12 @@ static int __init iseries_probe(void)
        powerpc_firmware_features |= FW_FEATURE_ISERIES;
        powerpc_firmware_features |= FW_FEATURE_LPAR;
 
+       /*
+        * The Hypervisor only allows us up to 256 interrupt
+        * sources (the irq number is passed in a u8).
+        */
+       virt_irq_max = 255;
+
        return 1;
 }
 
This page took 0.029635 seconds and 5 git commands to generate.