summaryrefslogtreecommitdiffstats
path: root/arch/alpha
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-05-01 19:15:18 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2017-05-01 19:15:18 -0400
commit174ddfd5dfbfc2d91a45332f809977050ac3fdc5 (patch)
tree825625de29439389f50da2fc2f92f3a51dff5f2d /arch/alpha
parent3cb6653552ddd0b5670a445032ecb9f162e950ff (diff)
parentb94bf594cf8ed67cdd0439e70fa939783471597a (diff)
Merge branch 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull timer updates from Thomas Gleixner: "The timer departement delivers: - more year 2038 rework - a massive rework of the arm achitected timer - preparatory patches to allow NTP correction of clock event devices to avoid early expiry - the usual pile of fixes and enhancements all over the place" * 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (91 commits) timer/sysclt: Restrict timer migration sysctl values to 0 and 1 arm64/arch_timer: Mark errata handlers as __maybe_unused Clocksource/mips-gic: Remove redundant non devicetree init MIPS/Malta: Probe gic-timer via devicetree clocksource: Use GENMASK_ULL in definition of CLOCKSOURCE_MASK acpi/arm64: Add SBSA Generic Watchdog support in GTDT driver clocksource: arm_arch_timer: add GTDT support for memory-mapped timer acpi/arm64: Add memory-mapped timer support in GTDT driver clocksource: arm_arch_timer: simplify ACPI support code. acpi/arm64: Add GTDT table parse driver clocksource: arm_arch_timer: split MMIO timer probing. clocksource: arm_arch_timer: add structs to describe MMIO timer clocksource: arm_arch_timer: move arch_timer_needs_of_probing into DT init call clocksource: arm_arch_timer: refactor arch_timer_needs_probing clocksource: arm_arch_timer: split dt-only rate handling x86/uv/time: Set ->min_delta_ticks and ->max_delta_ticks unicore32/time: Set ->min_delta_ticks and ->max_delta_ticks um/time: Set ->min_delta_ticks and ->max_delta_ticks tile/time: Set ->min_delta_ticks and ->max_delta_ticks score/time: Set ->min_delta_ticks and ->max_delta_ticks ...
Diffstat (limited to 'arch/alpha')
-rw-r--r--arch/alpha/kernel/osf_sys.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/alpha/kernel/osf_sys.c b/arch/alpha/kernel/osf_sys.c
index 6d76e528ab8f..9ec56dc97374 100644
--- a/arch/alpha/kernel/osf_sys.c
+++ b/arch/alpha/kernel/osf_sys.c
@@ -1016,6 +1016,7 @@ SYSCALL_DEFINE2(osf_gettimeofday, struct timeval32 __user *, tv,
1016SYSCALL_DEFINE2(osf_settimeofday, struct timeval32 __user *, tv, 1016SYSCALL_DEFINE2(osf_settimeofday, struct timeval32 __user *, tv,
1017 struct timezone __user *, tz) 1017 struct timezone __user *, tz)
1018{ 1018{
1019 struct timespec64 kts64;
1019 struct timespec kts; 1020 struct timespec kts;
1020 struct timezone ktz; 1021 struct timezone ktz;
1021 1022
@@ -1023,13 +1024,14 @@ SYSCALL_DEFINE2(osf_settimeofday, struct timeval32 __user *, tv,
1023 if (get_tv32((struct timeval *)&kts, tv)) 1024 if (get_tv32((struct timeval *)&kts, tv))
1024 return -EFAULT; 1025 return -EFAULT;
1025 kts.tv_nsec *= 1000; 1026 kts.tv_nsec *= 1000;
1027 kts64 = timespec_to_timespec64(kts);
1026 } 1028 }
1027 if (tz) { 1029 if (tz) {
1028 if (copy_from_user(&ktz, tz, sizeof(*tz))) 1030 if (copy_from_user(&ktz, tz, sizeof(*tz)))
1029 return -EFAULT; 1031 return -EFAULT;
1030 } 1032 }
1031 1033
1032 return do_sys_settimeofday(tv ? &kts : NULL, tz ? &ktz : NULL); 1034 return do_sys_settimeofday64(tv ? &kts64 : NULL, tz ? &ktz : NULL);
1033} 1035}
1034 1036
1035asmlinkage long sys_ni_posix_timers(void); 1037asmlinkage long sys_ni_posix_timers(void);