Skip to content

Commit

Permalink
powerpc: Fix compile error on pSeries arising from delay.h changes
Browse files Browse the repository at this point in the history
pseries_dedicated_idle() was using __get_tb which used to be defined
in asm/delay.h.  Change it to use get_tb from asm/time.h, which is
in fact exactly the same thing.

Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Paul Mackerras committed Nov 18, 2005
1 parent 437a58d commit 6146eed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/powerpc/platforms/pseries/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ static void pseries_dedicated_idle(void)
lpaca->lppaca.idle = 1;

if (!need_resched()) {
start_snooze = __get_tb() +
start_snooze = get_tb() +
*smt_snooze_delay * tb_ticks_per_usec;

while (!need_resched() && !cpu_is_offline(cpu)) {
Expand All @@ -518,7 +518,7 @@ static void pseries_dedicated_idle(void)
HMT_very_low();

if (*smt_snooze_delay != 0 &&
__get_tb() > start_snooze) {
get_tb() > start_snooze) {
HMT_medium();
dedicated_idle_sleep(cpu);
}
Expand Down

0 comments on commit 6146eed

Please sign in to comment.