rangetimers: fix the bug reported by Ingo for real

and please hand me a brown paper bag

(thanks to Thomas for pointing out this very obvious bug)

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
This commit is contained in:
Arjan van de Ven 2008-10-13 10:32:15 -04:00
parent 030aebd2e4
commit dc4304f7de
1 changed files with 2 additions and 6 deletions

View File

@ -1395,15 +1395,11 @@ void hrtimer_peek_ahead_timers(void)
unsigned long flags;
struct tick_device *td;
struct clock_event_device *dev;
struct hrtimer_cpu_base *cpu_base;
if (hrtimer_hres_active())
if (!hrtimer_hres_active())
return;
local_irq_save(flags);
cpu_base = &__get_cpu_var(hrtimer_bases);
if (!cpu_base->hres_active)
goto out;
td = &__get_cpu_var(tick_cpu_device);
if (!td)
goto out;