--- /home/ctm/src/sys/pci/intpm.c Fri Sep 3 03:16:24 1999 +++ intpm.c Thu Oct 14 12:25:28 1999 @@ -43,9 +43,9 @@ #include #include #include - +#include #include "smbus_if.h" - +#include "smp.h" /*This should be removed if force_pci_map_int supported*/ #include @@ -90,6 +90,9 @@ static int intpm_attach (device_t dev); static devclass_t intsmb_devclass; +static int intpm_poll=0; +SYSCTL_INT(_hw, OID_AUTO, intpm_poll, CTLFLAG_RW, &intpm_poll, 1, ""); + static device_method_t intpm_methods[]={ DEVMETHOD(device_probe,intsmb_probe), DEVMETHOD(device_attach,intsmb_attach), @@ -379,7 +382,7 @@ int error; intrmask_t s; struct intsmb_softc *sc = (struct intsmb_softc *)device_get_softc(dev); - if(cold){ + if(cold||intpm_poll!=0){ /*So that it can use device during probing device on SMBus.*/ error=intsmb_stop_poll(dev); return error; @@ -656,7 +659,10 @@ device_t smbinterface; int rid; struct resource *res; - +#if NSMP>0 + device_printf(dev,"SMP system so polling mode is default\n"); + intpm_poll=1; +#endif sciic=device_get_softc(dev); if(sciic==NULL){ return ENOMEM;