[Skiboot] [PATCH 2/4] timebase: Remove unused remaining time calculation
Joel Stanley
joel at jms.id.au
Tue Jun 5 17:13:35 AEST 2018
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 at jms.id.au>
---
core/timebase.c | 1 -
1 file changed, 1 deletion(-)
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);
--
2.17.0
More information about the Skiboot
mailing list