Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6146eed1 authored by Paul Mackerras's avatar Paul Mackerras
Browse files

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: default avatarPaul Mackerras <paulus@samba.org>
parent 437a58db
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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)) {
@@ -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);
				}