summaryrefslogtreecommitdiffstats
path: root/drivers/misc/hpilo.h
diff options
context:
space:
mode:
authorDavid Altobelli <david.altobelli@hp.com>2009-04-01 00:23:53 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2009-04-01 17:59:18 +0200
commit891f7d73ea30f925596b90bcf21020bfc5d90f3f (patch)
treeee2cf87038f657ead8e6df62acaa47f9805f0215 /drivers/misc/hpilo.h
parentntfs: remove private wrapper of endian helpers (diff)
downloadlinux-891f7d73ea30f925596b90bcf21020bfc5d90f3f.tar.xz
linux-891f7d73ea30f925596b90bcf21020bfc5d90f3f.zip
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 <david.altobelli@hp.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
-rw-r--r--drivers/misc/hpilo.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/misc/hpilo.h b/drivers/misc/hpilo.h
index b64a20ef07e3..03a14c82aad9 100644
--- a/drivers/misc/hpilo.h
+++ b/drivers/misc/hpilo.h
@@ -19,8 +19,12 @@
#define MAX_ILO_DEV 1
/* max number of files */
#define MAX_OPEN (MAX_CCB * MAX_ILO_DEV)
+/* total wait time in usec */
+#define MAX_WAIT_TIME 10000
+/* per spin wait time in usec */
+#define WAIT_TIME 10
/* spin counter for open/close delay */
-#define MAX_WAIT 10000
+#define MAX_WAIT (MAX_WAIT_TIME / WAIT_TIME)
/*
* Per device, used to track global memory allocations.