diff options
| author | Ingo Molnar <mingo@kernel.org> | 2013-10-10 00:25:23 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2013-10-10 00:25:23 -0400 |
| commit | 8a749de5e32d2b72def93f7bd7a2745580d75872 (patch) | |
| tree | e46d9059d0328bcb2faea1c084d17f749338cfe4 /kernel/time | |
| parent | a44eb870f815356dac56adf3a380ee9b94787424 (diff) | |
| parent | b4042ceaabbd913bc5b397ddd1e396eeb312d72f (diff) | |
Merge branch 'fortglx/3.13/time' of git://git.linaro.org/people/jstultz/linux into timers/core
Pull more timekeeping items for v3.13 from John Stultz:
* Small cleanup in the clocksource code.
* Fix for rtc-pl031 to let it work with alarmtimers.
* Move arm64 to using the generic sched_clock framework & resulting
cleanup in the generic sched_clock code.
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/time')
| -rw-r--r-- | kernel/time/clocksource.c | 4 | ||||
| -rw-r--r-- | kernel/time/sched_clock.c | 9 |
2 files changed, 3 insertions, 10 deletions
diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c index 64cf63ca09cc..c9317e14aae6 100644 --- a/kernel/time/clocksource.c +++ b/kernel/time/clocksource.c | |||
| @@ -940,7 +940,7 @@ static ssize_t sysfs_override_clocksource(struct device *dev, | |||
| 940 | struct device_attribute *attr, | 940 | struct device_attribute *attr, |
| 941 | const char *buf, size_t count) | 941 | const char *buf, size_t count) |
| 942 | { | 942 | { |
| 943 | size_t ret; | 943 | ssize_t ret; |
| 944 | 944 | ||
| 945 | mutex_lock(&clocksource_mutex); | 945 | mutex_lock(&clocksource_mutex); |
| 946 | 946 | ||
| @@ -968,7 +968,7 @@ static ssize_t sysfs_unbind_clocksource(struct device *dev, | |||
| 968 | { | 968 | { |
| 969 | struct clocksource *cs; | 969 | struct clocksource *cs; |
| 970 | char name[CS_NAME_LEN]; | 970 | char name[CS_NAME_LEN]; |
| 971 | size_t ret; | 971 | ssize_t ret; |
| 972 | 972 | ||
| 973 | ret = sysfs_get_uname(buf, name, count); | 973 | ret = sysfs_get_uname(buf, name, count); |
| 974 | if (ret < 0) | 974 | if (ret < 0) |
diff --git a/kernel/time/sched_clock.c b/kernel/time/sched_clock.c index f388baeaf2b6..68b799375981 100644 --- a/kernel/time/sched_clock.c +++ b/kernel/time/sched_clock.c | |||
| @@ -63,7 +63,7 @@ static inline u64 notrace cyc_to_ns(u64 cyc, u32 mult, u32 shift) | |||
| 63 | return (cyc * mult) >> shift; | 63 | return (cyc * mult) >> shift; |
| 64 | } | 64 | } |
| 65 | 65 | ||
| 66 | static unsigned long long notrace sched_clock_32(void) | 66 | unsigned long long notrace sched_clock(void) |
| 67 | { | 67 | { |
| 68 | u64 epoch_ns; | 68 | u64 epoch_ns; |
| 69 | u64 epoch_cyc; | 69 | u64 epoch_cyc; |
| @@ -170,13 +170,6 @@ void __init setup_sched_clock(u32 (*read)(void), int bits, unsigned long rate) | |||
| 170 | sched_clock_register(read_sched_clock_32_wrapper, bits, rate); | 170 | sched_clock_register(read_sched_clock_32_wrapper, bits, rate); |
| 171 | } | 171 | } |
| 172 | 172 | ||
| 173 | unsigned long long __read_mostly (*sched_clock_func)(void) = sched_clock_32; | ||
| 174 | |||
| 175 | unsigned long long notrace sched_clock(void) | ||
| 176 | { | ||
| 177 | return sched_clock_func(); | ||
| 178 | } | ||
| 179 | |||
| 180 | void __init sched_clock_postinit(void) | 173 | void __init sched_clock_postinit(void) |
| 181 | { | 174 | { |
| 182 | /* | 175 | /* |
