Skip to content

Commit

Permalink
rangetimers: fix the bug reported by Ingo for real
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Arjan van de Ven committed Oct 13, 2008
1 parent 030aebd commit dc4304f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions kernel/hrtimer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit dc4304f

Please sign in to comment.