projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f902dad
)
ab8500_fg: Remove pointless round_jiffies() call
author
Lee Jones
<lee.jones@linaro.org>
Fri, 11 Jan 2013 13:13:06 +0000
(13:13 +0000)
committer
Anton Vorontsov
<anton@enomsg.org>
Wed, 16 Jan 2013 01:44:46 +0000
(17:44 -0800)
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>
drivers/power/ab8500_fg.c
patch
|
blob
|
history
diff --git
a/drivers/power/ab8500_fg.c
b/drivers/power/ab8500_fg.c
index
570577c
..
cd03549
100644
(file)
--- 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;