X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fpci%2Fhotplug%2Fshpchp.h;h=c68b22efb5acf39fec8690c0cbfc0f088eee20f6;hb=9e1bf581d67d87a1d7fc0ea500729e3a03643a26;hp=89f192286fc83769df080b47e8e615c89593dc10;hpb=8d40237c730b8be87c1b80a5d96b9c603fefa829;p=linux-2.6.git diff --git a/drivers/pci/hotplug/shpchp.h b/drivers/pci/hotplug/shpchp.h index 89f192286..c68b22efb 100644 --- a/drivers/pci/hotplug/shpchp.h +++ b/drivers/pci/hotplug/shpchp.h @@ -31,7 +31,6 @@ #include #include -#include #include #include #include "pci_hotplug.h" @@ -312,7 +311,7 @@ struct php_ctlr_state_s { php_intr_callback_t presence_change_callback; php_intr_callback_t power_fault_callback; void *callback_instance_id; - void __iomem *creg; /* Ptr to controller register space */ + void *creg; /* Ptr to controller register space */ }; /* Inline functions */ @@ -382,14 +381,16 @@ static inline int wait_for_ctrl_irq (struct controller *ctrl) dbg("%s : start\n",__FUNCTION__); add_wait_queue(&ctrl->queue, &wait); + set_current_state(TASK_INTERRUPTIBLE); if (!shpchp_poll_mode) { /* Sleep for up to 1 second */ - msleep_interruptible(1000); + schedule_timeout(1*HZ); } else { /* Sleep for up to 2 seconds */ - msleep_interruptible(2000); + schedule_timeout(2*HZ); } + set_current_state(TASK_RUNNING); remove_wait_queue(&ctrl->queue, &wait); if (signal_pending(current)) retval = -EINTR;