[Devel] [PATCH rh7] ve: Use @real_start_timespec in uptime_proc_show

Cyrill Gorcunov gorcunov at virtuozzo.com
Wed Feb 10 08:43:15 PST 2016


uptime_proc_show uses bootbased clocks so we should use
@real_start_timespec here instead. Seems was a typo while
converting from pcs6 code.

In scope of

https://jira.sw.ru/browse/PSBM-41406

Signed-off-by: Cyrill Gorcunov <gorcunov at virtuozzo.com>
CC: Andrey Vagin <avagin at virtuozzo.com>
CC: Pavel Emelianov <xemul at virtuozzo.com>
CC: Vladimir Davydov <vdavydov at virtuozzo.com>
CC: Konstantin Khorenko <khorenko at virtuozzo.com>
---
 fs/proc/uptime.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Index: linux-pcs7.git/fs/proc/uptime.c
===================================================================
--- linux-pcs7.git.orig/fs/proc/uptime.c
+++ linux-pcs7.git/fs/proc/uptime.c
@@ -51,8 +51,8 @@ static int uptime_proc_show(struct seq_f
 #ifdef CONFIG_VE
 	if (!ve_is_super(get_exec_env())) {
 		set_normalized_timespec(&uptime,
-			uptime.tv_sec - get_exec_env()->start_timespec.tv_sec,
-			uptime.tv_nsec - get_exec_env()->start_timespec.tv_nsec);
+			uptime.tv_sec - get_exec_env()->real_start_timespec.tv_sec,
+			uptime.tv_nsec - get_exec_env()->real_start_timespec.tv_nsec);
 	}
 #endif
 	seq_printf(m, "%lu.%02lu %lu.%02lu\n",


More information about the Devel mailing list