[ofa-general] [PATCH] Use round_jiffies() in ehca timer
Anton Blanchard
anton at samba.org
Sun Oct 14 22:49:07 PDT 2007
Use round_jiffies() to align the 1 second timer with other timers and
potentially save power by sleeping cores for longer.
Signed-off-by: Anton Blanchard <anton at samba.org>
---
diff --git a/drivers/infiniband/hw/ehca/ehca_main.c b/drivers/infiniband/hw/ehca/ehca_main.c
index 403467f..23000b7 100644
--- a/drivers/infiniband/hw/ehca/ehca_main.c
+++ b/drivers/infiniband/hw/ehca/ehca_main.c
@@ -902,7 +902,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);
}
More information about the general
mailing list