aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/fork.c
diff options
context:
space:
mode:
authorTomas Janousek <tjanouse@redhat.com>2007-07-16 02:39:42 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-16 12:05:41 -0400
commit924b42d5a2dbe508407a0a6290d3751f826bccdd (patch)
treec13a647ae93bcf033bddb713c1e117e84698c679 /kernel/fork.c
parent7c3f1a573237b90ef331267260358a0ec4ac9079 (diff)
Use boot based time for process start time and boot time in /proc
Commit 411187fb05cd11676b0979d9fbf3291db69dbce2 caused boot time to move and process start times to become invalid after suspend. Using boot based time for those restores the old behaviour and fixes the issue. [akpm@linux-foundation.org: little cleanup] Signed-off-by: Tomas Janousek <tjanouse@redhat.com> Cc: Tomas Smetana <tsmetana@redhat.com> Acked-by: John Stultz <johnstul@us.ibm.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/fork.c')
-rw-r--r--kernel/fork.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index da3a155bba0d..344d693fdc78 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -1059,6 +1059,8 @@ static struct task_struct *copy_process(unsigned long clone_flags,
1059 1059
1060 p->lock_depth = -1; /* -1 = no lock */ 1060 p->lock_depth = -1; /* -1 = no lock */
1061 do_posix_clock_monotonic_gettime(&p->start_time); 1061 do_posix_clock_monotonic_gettime(&p->start_time);
1062 p->real_start_time = p->start_time;
1063 monotonic_to_bootbased(&p->real_start_time);
1062 p->security = NULL; 1064 p->security = NULL;
1063 p->io_context = NULL; 1065 p->io_context = NULL;
1064 p->io_wait = NULL; 1066 p->io_wait = NULL;