summaryrefslogtreecommitdiffstats
path: root/drivers/power
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2013-01-11 14:13:06 +0100
committerAnton Vorontsov <anton@enomsg.org>2013-01-16 02:44:46 +0100
commit41ce25657bcd631235c123ace9d2f37c995e123d (patch)
tree08c647829839a05c173a1556866916c64b2eb394 /drivers/power
parentab8500_fg: Overflow in current calculation (diff)
downloadlinux-41ce25657bcd631235c123ace9d2f37c995e123d.tar.xz
linux-41ce25657bcd631235c123ace9d2f37c995e123d.zip
ab8500_fg: Remove pointless round_jiffies() call
As HZ is a full-second, there is little point in rounding it. Let's save a few cycles by using HZ directly. Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Anton Vorontsov <anton@enomsg.org>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/ab8500_fg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/ab8500_fg.c b/drivers/power/ab8500_fg.c
index 570577c32ade..cd03549b6227 100644
--- a/drivers/power/ab8500_fg.c
+++ b/drivers/power/ab8500_fg.c
@@ -1854,7 +1854,7 @@ static void ab8500_fg_check_hw_failure_work(struct work_struct *work)
}
/* Not yet recovered from ovv, reschedule this test */
queue_delayed_work(di->fg_wq, &di->fg_check_hw_failure_work,
- round_jiffies(HZ));
+ HZ);
} else {
dev_dbg(di->dev, "Battery recovered from OVV\n");
di->flags.bat_ovv = false;