Commit 643bdf68 authored by Thomas Gleixner's avatar Thomas Gleixner

hrtimers: simplify hrtimer_peek_ahead_timers()

Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent e1dd7bc5
......@@ -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);
}
......
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