]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
powerpc: Fix compile error on pSeries arising from delay.h changes
authorPaul Mackerras <paulus@samba.org>
Fri, 18 Nov 2005 04:47:18 +0000 (15:47 +1100)
committerPaul Mackerras <paulus@samba.org>
Fri, 18 Nov 2005 04:47:18 +0000 (15:47 +1100)
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>
arch/powerpc/platforms/pseries/setup.c

index b9d9732b2e0668fc06f797590d893ee76eb7416c..4a465f067ede53b64481574092f8bc7fe4c4735c 100644 (file)
@@ -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);
                                }