History

hrtimers: simplify hrtimer_peek_ahead_timers()

Thomas Gleixner committed 18 years ago

Commit 643bdf61 parent e1dd7bc1 file · +3 −9Browse files

Unified · Split

kernel/hrtimer.c+3−9
@@ -1394,22 +1394,16 @@ void hrtimer_interrupt(struct clock_event_device *dev) · 1393 unmodified lines
13941394 */
13951395 void hrtimer_peek_ahead_timers(void)
13961396 {
1397− unsigned long flags;
13981397 struct tick_device *td;
1399− struct clock_event_device *dev;
1398+ unsigned long flags;
14001399
14011400 if (!hrtimer_hres_active())
14021401 return;
14031402
14041403 local_irq_save(flags);
14051404 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);
14131407 local_irq_restore(flags);
14141408 }
14151409

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t