diff options
Diffstat (limited to 'fs/proc/array.c')
| -rw-r--r-- | fs/proc/array.c | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/fs/proc/array.c b/fs/proc/array.c index 7052441be967..a23c3e220a5f 100644 --- a/fs/proc/array.c +++ b/fs/proc/array.c @@ -56,6 +56,7 @@  #include <linux/types.h>  #include <linux/errno.h>  #include <linux/time.h> +#include <linux/time_namespace.h>  #include <linux/kernel.h>  #include <linux/kernel_stat.h>  #include <linux/tty.h> @@ -533,8 +534,9 @@ static int do_task_stat(struct seq_file *m, struct pid_namespace *ns,  	priority = task_prio(task);  	nice = task_nice(task); -	/* convert nsec -> ticks */ -	start_time = nsec_to_clock_t(task->start_boottime); +	/* apply timens offset for boottime and convert nsec -> ticks */ +	start_time = +		nsec_to_clock_t(timens_add_boottime_ns(task->start_boottime));  	seq_put_decimal_ull(m, "", pid_nr_ns(pid, ns));  	seq_puts(m, " ("); | 
