diff options
Diffstat (limited to 'kernel/time/tick-broadcast.c')
-rw-r--r-- | kernel/time/tick-broadcast.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/kernel/time/tick-broadcast.c b/kernel/time/tick-broadcast.c index 5744f40b2697..2bc1f046151c 100644 --- a/kernel/time/tick-broadcast.c +++ b/kernel/time/tick-broadcast.c | |||
@@ -372,16 +372,8 @@ cpumask_t *tick_get_broadcast_oneshot_mask(void) | |||
372 | static int tick_broadcast_set_event(ktime_t expires, int force) | 372 | static int tick_broadcast_set_event(ktime_t expires, int force) |
373 | { | 373 | { |
374 | struct clock_event_device *bc = tick_broadcast_device.evtdev; | 374 | struct clock_event_device *bc = tick_broadcast_device.evtdev; |
375 | ktime_t now = ktime_get(); | 375 | |
376 | int res; | 376 | return tick_dev_program_event(bc, expires, force); |
377 | |||
378 | for(;;) { | ||
379 | res = clockevents_program_event(bc, expires, now); | ||
380 | if (!res || !force) | ||
381 | return res; | ||
382 | now = ktime_get(); | ||
383 | expires = ktime_add(now, ktime_set(0, bc->min_delta_ns)); | ||
384 | } | ||
385 | } | 377 | } |
386 | 378 | ||
387 | int tick_resume_broadcast_oneshot(struct clock_event_device *bc) | 379 | int tick_resume_broadcast_oneshot(struct clock_event_device *bc) |