]> git.pld-linux.org Git - packages/kernel.git/commitdiff
- more vserver timekeeping fixes
authorJan Rękorajski <baggins@pld-linux.org>
Mon, 15 Jan 2018 22:12:59 +0000 (23:12 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Mon, 15 Jan 2018 22:12:59 +0000 (23:12 +0100)
kernel-vserver-fixes.patch

index df4490fd1199d047322e0b7c1680c67a1a3579e2..8284edfe4f62c34690fd2a9e479c5b3473e266ed 100644 (file)
  
  #else
  #define       vx_adjust_timespec(t)   do { } while (0)
+--- linux-4.9.76/include/linux/vserver/cvirt.h 1970-01-01 00:00:00.000000000 +0000
++++ linux-4.9.76-vs2.3.9.5/include/linux/vserver/cvirt.h       2018-01-10 02:50:49.000000000 +0000
+@@ -3,7 +3,7 @@ diff -NurpP --minimal linux-4.9.76/include/linux/vserver/cvirt.h linux-4.9.76-vs
+ struct timespec;
+-void vx_vsi_boottime(struct timespec *);
++void vx_vsi_boottime(struct timespec64 *);
+ void vx_vsi_uptime(struct timespec *, struct timespec *);
+--- linux-4.9.76/kernel/vserver/cvirt.c        1970-01-01 00:00:00.000000000 +0000
++++ linux-4.9.76-vs2.3.9.5/kernel/vserver/cvirt.c      2018-01-11 08:36:23.000000000 +0000
+@@ -20,11 +20,11 @@ diff -NurpP --minimal linux-4.9.76/kernel/vserver/cvirt.c linux-4.9.76-vs2.3.9.5
+ #include <asm/uaccess.h>
+-void vx_vsi_boottime(struct timespec *boottime)
++void vx_vsi_boottime(struct timespec64 *boottime)
+ {
+       struct vx_info *vxi = current_vx_info();
+-      set_normalized_timespec(boottime,
++      set_normalized_timespec64(boottime,
+               boottime->tv_sec + vxi->cvirt.bias_uptime.tv_sec,
+               boottime->tv_nsec + vxi->cvirt.bias_uptime.tv_nsec);
+       return;
+@@ -245,8 +245,8 @@ diff -NurpP --minimal linux-4.9.76/kernel/vserver/cvirt.c linux-4.9.76-vs2.3.9.5
+       struct _vx_cvirt *cvirt = &vxi->cvirt;
+       struct timespec64 uptime;
+-      ktime_get_ts(&uptime);
+-      set_normalized_timespec(&uptime,
++      ktime_get_ts64(&uptime);
++      set_normalized_timespec64(&uptime,
+               uptime.tv_sec - cvirt->bias_uptime.tv_sec,
+               uptime.tv_nsec - cvirt->bias_uptime.tv_nsec);
This page took 0.059813 seconds and 4 git commands to generate.