aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorJoel Stanley <joel@jms.id.au>2018-06-05 16:43:35 +0930
committerStewart Smith <stewart@linux.ibm.com>2018-06-18 22:13:43 -0500
commit4026841b48487ca5209d06a1c194132357e3db6f (patch)
tree181bb40490fdbf6ed0d6ee73830b35a4689c742f /core
parent3754022e50d5e18a6b688299ab350e7d259cae59 (diff)
downloadskiboot-4026841b48487ca5209d06a1c194132357e3db6f.zip
skiboot-4026841b48487ca5209d06a1c194132357e3db6f.tar.gz
skiboot-4026841b48487ca5209d06a1c194132357e3db6f.tar.bz2
timebase: Remove unused remaining time calculation
In db9c1422002c ("Improve cpu_idle when PM is disabled") the time_wait_poll calculation was modified to calculate the remaining time on each loop. Because of this we don't need to decrement remaining any more. Found by scan-build. Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'core')
-rw-r--r--core/timebase.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/core/timebase.c b/core/timebase.c
index 777e4ba..24e7295 100644
--- a/core/timebase.c
+++ b/core/timebase.c
@@ -41,7 +41,6 @@ static void time_wait_poll(unsigned long duration)
if (remaining >= period) {
opal_run_pollers();
time_wait_nopoll(period);
- remaining -= period;
} else
time_wait_nopoll(remaining);