mirror of
https://github.com/torvalds/linux.git
synced 2024-12-29 14:21:47 +00:00
powerpc: Fix compile error on pSeries arising from delay.h changes
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>
This commit is contained in:
parent
437a58db57
commit
6146eed1e9
@ -504,7 +504,7 @@ static void pseries_dedicated_idle(void)
|
|||||||
lpaca->lppaca.idle = 1;
|
lpaca->lppaca.idle = 1;
|
||||||
|
|
||||||
if (!need_resched()) {
|
if (!need_resched()) {
|
||||||
start_snooze = __get_tb() +
|
start_snooze = get_tb() +
|
||||||
*smt_snooze_delay * tb_ticks_per_usec;
|
*smt_snooze_delay * tb_ticks_per_usec;
|
||||||
|
|
||||||
while (!need_resched() && !cpu_is_offline(cpu)) {
|
while (!need_resched() && !cpu_is_offline(cpu)) {
|
||||||
@ -518,7 +518,7 @@ static void pseries_dedicated_idle(void)
|
|||||||
HMT_very_low();
|
HMT_very_low();
|
||||||
|
|
||||||
if (*smt_snooze_delay != 0 &&
|
if (*smt_snooze_delay != 0 &&
|
||||||
__get_tb() > start_snooze) {
|
get_tb() > start_snooze) {
|
||||||
HMT_medium();
|
HMT_medium();
|
||||||
dedicated_idle_sleep(cpu);
|
dedicated_idle_sleep(cpu);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user