diff options
Diffstat (limited to 'kernel/time/timekeeping.c')
-rw-r--r-- | kernel/time/timekeeping.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c index 5b40279ecd71..f7df8ea21707 100644 --- a/kernel/time/timekeeping.c +++ b/kernel/time/timekeeping.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <linux/tick.h> | 22 | #include <linux/tick.h> |
23 | #include <linux/stop_machine.h> | 23 | #include <linux/stop_machine.h> |
24 | #include <linux/pvclock_gtod.h> | 24 | #include <linux/pvclock_gtod.h> |
25 | #include <linux/compiler.h> | ||
25 | 26 | ||
26 | #include "tick-internal.h" | 27 | #include "tick-internal.h" |
27 | #include "ntp_internal.h" | 28 | #include "ntp_internal.h" |
@@ -760,7 +761,7 @@ u64 timekeeping_max_deferment(void) | |||
760 | * | 761 | * |
761 | * XXX - Do be sure to remove it once all arches implement it. | 762 | * XXX - Do be sure to remove it once all arches implement it. |
762 | */ | 763 | */ |
763 | void __attribute__((weak)) read_persistent_clock(struct timespec *ts) | 764 | void __weak read_persistent_clock(struct timespec *ts) |
764 | { | 765 | { |
765 | ts->tv_sec = 0; | 766 | ts->tv_sec = 0; |
766 | ts->tv_nsec = 0; | 767 | ts->tv_nsec = 0; |
@@ -775,7 +776,7 @@ void __attribute__((weak)) read_persistent_clock(struct timespec *ts) | |||
775 | * | 776 | * |
776 | * XXX - Do be sure to remove it once all arches implement it. | 777 | * XXX - Do be sure to remove it once all arches implement it. |
777 | */ | 778 | */ |
778 | void __attribute__((weak)) read_boot_clock(struct timespec *ts) | 779 | void __weak read_boot_clock(struct timespec *ts) |
779 | { | 780 | { |
780 | ts->tv_sec = 0; | 781 | ts->tv_sec = 0; |
781 | ts->tv_nsec = 0; | 782 | ts->tv_nsec = 0; |