diff mbox series

[2/4] timebase: Remove unused remaining time calculation

Message ID 20180605071337.22915-3-joel@jms.id.au
State Accepted
Headers show
Series Misc fixes | expand

Commit Message

Joel Stanley June 5, 2018, 7:13 a.m. UTC
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>
---
 core/timebase.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/core/timebase.c b/core/timebase.c
index 777e4ba6b668..24e72959f542 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);