Skip to content

Commit

Permalink
hrtimers: simplify hrtimer_peek_ahead_timers()
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Thomas Gleixner committed Oct 20, 2008
1 parent e1dd7bc commit 643bdf6
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions kernel/hrtimer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1394,22 +1394,16 @@ void hrtimer_interrupt(struct clock_event_device *dev)
*/
void hrtimer_peek_ahead_timers(void)
{
unsigned long flags;
struct tick_device *td;
struct clock_event_device *dev;
unsigned long flags;

if (!hrtimer_hres_active())
return;

local_irq_save(flags);
td = &__get_cpu_var(tick_cpu_device);
if (!td)
goto out;
dev = td->evtdev;
if (!dev)
goto out;
hrtimer_interrupt(dev);
out:
if (td && td->evtdev)
hrtimer_interrupt(td->evtdev);
local_irq_restore(flags);
}

Expand Down

0 comments on commit 643bdf6

Please sign in to comment.