projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5851bb8
)
IB/ehca: Use round_jiffies() for EQ polling timer
author
Anton Blanchard
<anton@samba.org>
Mon, 15 Oct 2007 05:49:07 +0000
(
00:49
-0500)
committer
Roland Dreier
<rolandd@cisco.com>
Fri, 25 Jan 2008 22:15:41 +0000
(14:15 -0800)
Use round_jiffies() to align ehca's 1-second timer with other timers
and potentially save power by sleeping cores for longer.
Signed-off-by: Anton Blanchard <anton@samba.org>
Acked-by: Hoang-Nam Nguyen <hnguyen@de.ibm.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ehca/ehca_main.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/ehca/ehca_main.c
b/drivers/infiniband/hw/ehca/ehca_main.c
index
c9e32b4
..
173d3e9
100644
(file)
--- a/
drivers/infiniband/hw/ehca/ehca_main.c
+++ b/
drivers/infiniband/hw/ehca/ehca_main.c
@@
-934,7
+934,7
@@
void ehca_poll_eqs(unsigned long data)
ehca_process_eq(shca, 0);
}
}
- mod_timer(&poll_eqs_timer,
jiffies + HZ
);
+ mod_timer(&poll_eqs_timer,
round_jiffies(jiffies + HZ)
);
spin_unlock(&shca_list_lock);
}