]> err.no Git - linux-2.6/blobdiff - kernel/fork.c
Use boot based time for process start time and boot time in /proc
[linux-2.6] / kernel / fork.c
index da3a155bba0ddc5c50a8082833a90be6fe60e8ce..344d693fdc787c153ca702a3d3481031164a964a 100644 (file)
@@ -1059,6 +1059,8 @@ static struct task_struct *copy_process(unsigned long clone_flags,
 
        p->lock_depth = -1;             /* -1 = no lock */
        do_posix_clock_monotonic_gettime(&p->start_time);
+       p->real_start_time = p->start_time;
+       monotonic_to_bootbased(&p->real_start_time);
        p->security = NULL;
        p->io_context = NULL;
        p->io_wait = NULL;