PM: remove redundant calculation
venu byravarasu [Fri, 28 Oct 2011 09:18:31 +0000 (14:18 +0530)]
As max_num usage is not necessary, removing it.

Change-Id: I7b668bbbf0d5a388c8ade017194958976c861ea3
Reviewed-on: http://git-master/r/60855
Tested-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

Rebase-Id: R131970045a24c494f94de0a51eea6c73bdf994ea

drivers/base/power/runtime.c

index 535e6e6..521ea52 100644 (file)
@@ -29,13 +29,9 @@ void update_pm_runtime_accounting(struct device *dev)
 {
        unsigned long now = jiffies;
        unsigned long delta;
-       unsigned long max_num = ~0;
 
        delta = now - dev->power.accounting_timestamp;
 
-       if (now < dev->power.accounting_timestamp)
-               delta = max_num - dev->power.accounting_timestamp + now;
-
        dev->power.accounting_timestamp = now;
 
        if (dev->power.disable_depth > 0)