]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
hrtimers: simplify hrtimer_peek_ahead_timers()
authorThomas Gleixner <tglx@linutronix.de>
Mon, 20 Oct 2008 11:38:11 +0000 (13:38 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 20 Oct 2008 11:38:11 +0000 (13:38 +0200)
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/hrtimer.c

index 00e6f0a1e7a38a701184dbe06b06f5bc21af99c1..4fc41414fc068395b7202ec80e39ce404812efa7 100644 (file)
@@ -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);
 }