Skip to content

Commit

Permalink
timebase: Remove unused remaining time calculation
Browse files Browse the repository at this point in the history
In db9c142 ("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>
  • Loading branch information
shenki authored and stewartsmith committed Jun 19, 2018
1 parent 3754022 commit 4026841
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion core/timebase.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 4026841

Please sign in to comment.