Commit 8ebc07de authored by David Brownell's avatar David Brownell Committed by Tony Lindgren

ARM: OMAP: omap2/pm.c build fix

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: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent ed7d5d82
...@@ -389,8 +389,12 @@ static void omap2_pm_dump(int mode, int resume, unsigned int us) ...@@ -389,8 +389,12 @@ static void omap2_pm_dump(int mode, int resume, unsigned int us)
} }
if (!resume) 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, printk("--- Going to %s %s (next timer after %u ms)\n", s1, s2,
jiffies_to_msecs(next_timer_interrupt() - jiffies)); jiffies_to_msecs(next_timer_interrupt() - jiffies));
#else
printk("--- Going to %s %s\n", s1, s2);
#endif
else else
printk("--- Woke up (slept for %u.%03u ms)\n", us / 1000, us % 1000); printk("--- Woke up (slept for %u.%03u ms)\n", us / 1000, us % 1000);
for (i = 0; i < reg_count; i++) for (i = 0; i < reg_count; i++)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment