Commit 643bdf68f92a8516574ed7ca3713f9334c331b8d

Authored by Thomas Gleixner
1 parent e1dd7bc585

hrtimers: simplify hrtimer_peek_ahead_timers()

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

Showing 1 changed file with 3 additions and 9 deletions Side-by-side Diff

... ... @@ -1394,22 +1394,16 @@
1394 1394 */
1395 1395 void hrtimer_peek_ahead_timers(void)
1396 1396 {
1397   - unsigned long flags;
1398 1397 struct tick_device *td;
1399   - struct clock_event_device *dev;
  1398 + unsigned long flags;
1400 1399  
1401 1400 if (!hrtimer_hres_active())
1402 1401 return;
1403 1402  
1404 1403 local_irq_save(flags);
1405 1404 td = &__get_cpu_var(tick_cpu_device);
1406   - if (!td)
1407   - goto out;
1408   - dev = td->evtdev;
1409   - if (!dev)
1410   - goto out;
1411   - hrtimer_interrupt(dev);
1412   -out:
  1405 + if (td && td->evtdev)
  1406 + hrtimer_interrupt(td->evtdev);
1413 1407 local_irq_restore(flags);
1414 1408 }
1415 1409