Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 109639
b: refs/heads/master
c: d4496b3
h: refs/heads/master
i:
  109637: 75105c0
  109635: 3338356
  109631: 286d33e
v: v3
  • Loading branch information
Thomas Gleixner committed Sep 5, 2008
1 parent 868ad8d commit 6b8f6a2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7c1e76897492d92b6a1c2d6892494d39ded9680c
refs/heads/master: d4496b39559c6d43f83e4c08b899984f8b8089b5
11 changes: 8 additions & 3 deletions trunk/kernel/time/tick-broadcast.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ static void tick_do_periodic_broadcast(void)
*/
static void tick_handle_periodic_broadcast(struct clock_event_device *dev)
{
ktime_t next;

tick_do_periodic_broadcast();

/*
Expand All @@ -185,10 +187,13 @@ static void tick_handle_periodic_broadcast(struct clock_event_device *dev)

/*
* Setup the next period for devices, which do not have
* periodic mode:
* periodic mode. We read dev->next_event first and add to it
* when the event alrady expired. clockevents_program_event()
* sets dev->next_event only when the event is really
* programmed to the device.
*/
for (;;) {
ktime_t next = ktime_add(dev->next_event, tick_period);
for (next = dev->next_event; ;) {
next = ktime_add(next, tick_period);

if (!clockevents_program_event(dev, next, ktime_get()))
return;
Expand Down

0 comments on commit 6b8f6a2

Please sign in to comment.