diff options
Diffstat (limited to 'kernel/time/clockevents.c')
-rw-r--r-- | kernel/time/clockevents.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/kernel/time/clockevents.c b/kernel/time/clockevents.c index f85e5fda9c66..ad362c260ef4 100644 --- a/kernel/time/clockevents.c +++ b/kernel/time/clockevents.c | |||
@@ -542,12 +542,13 @@ void clockevents_resume(void) | |||
542 | #ifdef CONFIG_GENERIC_CLOCKEVENTS | 542 | #ifdef CONFIG_GENERIC_CLOCKEVENTS |
543 | /** | 543 | /** |
544 | * clockevents_notify - notification about relevant events | 544 | * clockevents_notify - notification about relevant events |
545 | * Returns 0 on success, any other value on error | ||
545 | */ | 546 | */ |
546 | void clockevents_notify(unsigned long reason, void *arg) | 547 | int clockevents_notify(unsigned long reason, void *arg) |
547 | { | 548 | { |
548 | struct clock_event_device *dev, *tmp; | 549 | struct clock_event_device *dev, *tmp; |
549 | unsigned long flags; | 550 | unsigned long flags; |
550 | int cpu; | 551 | int cpu, ret = 0; |
551 | 552 | ||
552 | raw_spin_lock_irqsave(&clockevents_lock, flags); | 553 | raw_spin_lock_irqsave(&clockevents_lock, flags); |
553 | 554 | ||
@@ -560,7 +561,7 @@ void clockevents_notify(unsigned long reason, void *arg) | |||
560 | 561 | ||
561 | case CLOCK_EVT_NOTIFY_BROADCAST_ENTER: | 562 | case CLOCK_EVT_NOTIFY_BROADCAST_ENTER: |
562 | case CLOCK_EVT_NOTIFY_BROADCAST_EXIT: | 563 | case CLOCK_EVT_NOTIFY_BROADCAST_EXIT: |
563 | tick_broadcast_oneshot_control(reason); | 564 | ret = tick_broadcast_oneshot_control(reason); |
564 | break; | 565 | break; |
565 | 566 | ||
566 | case CLOCK_EVT_NOTIFY_CPU_DYING: | 567 | case CLOCK_EVT_NOTIFY_CPU_DYING: |
@@ -603,6 +604,7 @@ void clockevents_notify(unsigned long reason, void *arg) | |||
603 | break; | 604 | break; |
604 | } | 605 | } |
605 | raw_spin_unlock_irqrestore(&clockevents_lock, flags); | 606 | raw_spin_unlock_irqrestore(&clockevents_lock, flags); |
607 | return ret; | ||
606 | } | 608 | } |
607 | EXPORT_SYMBOL_GPL(clockevents_notify); | 609 | EXPORT_SYMBOL_GPL(clockevents_notify); |
608 | 610 | ||