forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hpilo: reduce frequency of IO operations
Change hpilo open and close logic to spin for 10usec between checking device, rather than every usec. Because the loop is coded to take up to 10ms, it seemed prudent to increase the interval between polling the device, to reduce the load on the system and allow more other work to happen. Signed-off-by: David Altobelli <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information
Showing
2 changed files
with
8 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -209,7 +209,7 @@ static void ilo_ccb_close(struct pci_dev *pdev, struct ccb_data *data) | |
/* give iLO some time to process stop request */ | ||
for (retries = MAX_WAIT; retries > 0; retries--) { | ||
doorbell_set(driver_ccb); | ||
udelay(1); | ||
udelay(WAIT_TIME); | ||
if (!(ioread32(&device_ccb->send_ctrl) & (1 << CTRL_BITPOS_A)) | ||
&& | ||
!(ioread32(&device_ccb->recv_ctrl) & (1 << CTRL_BITPOS_A))) | ||
|
@@ -312,7 +312,7 @@ static int ilo_ccb_open(struct ilo_hwinfo *hw, struct ccb_data *data, int slot) | |
for (i = MAX_WAIT; i > 0; i--) { | ||
if (ilo_pkt_dequeue(hw, driver_ccb, SENDQ, &pkt_id, NULL, NULL)) | ||
break; | ||
udelay(1); | ||
udelay(WAIT_TIME); | ||
} | ||
|
||
if (i) { | ||
|
@@ -759,7 +759,7 @@ static void __exit ilo_exit(void) | |
class_destroy(ilo_class); | ||
} | ||
|
||
MODULE_VERSION("1.0"); | ||
MODULE_VERSION("1.1"); | ||
MODULE_ALIAS(ILO_NAME); | ||
MODULE_DESCRIPTION(ILO_NAME); | ||
MODULE_AUTHOR("David Altobelli <[email protected]>"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters