diff options
Diffstat (limited to 'kernel/time/timekeeping.c')
| -rw-r--r-- | kernel/time/timekeeping.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c index 7faaa32fbf4f..16736379a9ca 100644 --- a/kernel/time/timekeeping.c +++ b/kernel/time/timekeeping.c | |||
| @@ -622,6 +622,7 @@ static int timekeeping_suspend(struct sys_device *dev, pm_message_t state) | |||
| 622 | write_sequnlock_irqrestore(&xtime_lock, flags); | 622 | write_sequnlock_irqrestore(&xtime_lock, flags); |
| 623 | 623 | ||
| 624 | clockevents_notify(CLOCK_EVT_NOTIFY_SUSPEND, NULL); | 624 | clockevents_notify(CLOCK_EVT_NOTIFY_SUSPEND, NULL); |
| 625 | clocksource_suspend(); | ||
| 625 | 626 | ||
| 626 | return 0; | 627 | return 0; |
| 627 | } | 628 | } |
| @@ -880,6 +881,7 @@ void getboottime(struct timespec *ts) | |||
| 880 | 881 | ||
| 881 | set_normalized_timespec(ts, -boottime.tv_sec, -boottime.tv_nsec); | 882 | set_normalized_timespec(ts, -boottime.tv_sec, -boottime.tv_nsec); |
| 882 | } | 883 | } |
| 884 | EXPORT_SYMBOL_GPL(getboottime); | ||
| 883 | 885 | ||
| 884 | /** | 886 | /** |
| 885 | * monotonic_to_bootbased - Convert the monotonic time to boot based. | 887 | * monotonic_to_bootbased - Convert the monotonic time to boot based. |
| @@ -889,6 +891,7 @@ void monotonic_to_bootbased(struct timespec *ts) | |||
| 889 | { | 891 | { |
| 890 | *ts = timespec_add_safe(*ts, total_sleep_time); | 892 | *ts = timespec_add_safe(*ts, total_sleep_time); |
| 891 | } | 893 | } |
| 894 | EXPORT_SYMBOL_GPL(monotonic_to_bootbased); | ||
| 892 | 895 | ||
| 893 | unsigned long get_seconds(void) | 896 | unsigned long get_seconds(void) |
| 894 | { | 897 | { |
