diff options
author | Anton Blanchard <anton@samba.org> | 2007-10-15 01:49:07 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2008-01-25 17:15:41 -0500 |
commit | 1a7d2dce4169ed42310926a5675fffd0986caa26 (patch) | |
tree | ea3dcb6f1f3d114b89603fafb3f39f77292fab71 /drivers/infiniband/hw/ehca | |
parent | 5851bb893e5bb87150817c180ccddcf4e78db1b6 (diff) |
IB/ehca: Use round_jiffies() for EQ polling timer
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>
Diffstat (limited to 'drivers/infiniband/hw/ehca')
-rw-r--r-- | drivers/infiniband/hw/ehca/ehca_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/ehca/ehca_main.c b/drivers/infiniband/hw/ehca/ehca_main.c index c9e32b46387f..173d3e9f9268 100644 --- 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) | |||
934 | ehca_process_eq(shca, 0); | 934 | ehca_process_eq(shca, 0); |
935 | } | 935 | } |
936 | } | 936 | } |
937 | mod_timer(&poll_eqs_timer, jiffies + HZ); | 937 | mod_timer(&poll_eqs_timer, round_jiffies(jiffies + HZ)); |
938 | spin_unlock(&shca_list_lock); | 938 | spin_unlock(&shca_list_lock); |
939 | } | 939 | } |
940 | 940 | ||