]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP: omap2/pm.c build fix
authorDavid Brownell <david-b@pacbell.net>
Wed, 28 Mar 2007 20:16:08 +0000 (13:16 -0700)
committerTony Lindgren <tony@atomide.com>
Thu, 29 Mar 2007 20:37:21 +0000 (16:37 -0400)
Fix build bug ... next_timer_interrupt() depends on NO_IDLE_HZ
or else (new style) NO_HZ, so don't assume it's always present.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/pm.c

index 27d7f85425b37c14cc50baa3176c5b2aa736a975..64e67e55a1ad41b8193f68e17881511ba151d9cf 100644 (file)
@@ -389,8 +389,12 @@ static void omap2_pm_dump(int mode, int resume, unsigned int us)
        }
 
        if (!resume)
+#if defined(CONFIG_NO_IDLE_HZ) || defined(CONFIG_NO_HZ)
                printk("--- Going to %s %s (next timer after %u ms)\n", s1, s2,
                       jiffies_to_msecs(next_timer_interrupt() - jiffies));
+#else
+               printk("--- Going to %s %s\n", s1, s2);
+#endif
        else
                printk("--- Woke up (slept for %u.%03u ms)\n", us / 1000, us % 1000);
        for (i = 0; i < reg_count; i++)