projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9db50b
)
PM / Runtime: Fix runtime accounting calculation error
author
venu byravarasu
<vbyravarasu@nvidia.com>
Thu, 3 Nov 2011 09:12:14 +0000
(10:12 +0100)
committer
Rafael J. Wysocki
<rjw@sisk.pl>
Fri, 4 Nov 2011 21:28:10 +0000
(22:28 +0100)
With delta type being int, its value is made zero
for all values of now > 0x80000000.
Hence fixing it.
Signed-off-by: venu byravarasu <vbyravarasu@nvidia.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/base/power/runtime.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/base/power/runtime.c
b/drivers/base/power/runtime.c
index 6bb3aafa85ede9efe75d41abba500211fc9b262b..18ef87e525faa8ed8ea4a7d5e18d93a1e4acd7a4 100644
(file)
--- a/
drivers/base/power/runtime.c
+++ b/
drivers/base/power/runtime.c
@@
-29,13
+29,10
@@
static int rpm_suspend(struct device *dev, int rpmflags);
void update_pm_runtime_accounting(struct device *dev)
{
unsigned long now = jiffies;
-
int
delta;
+
unsigned long
delta;
delta = now - dev->power.accounting_timestamp;
- if (delta < 0)
- delta = 0;
-
dev->power.accounting_timestamp = now;
if (dev->power.disable_depth > 0)