aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
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 /include/linux
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 'include/linux')
-rw-r--r--include/linux/sched.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index cfb680585ab8..3cffc1204663 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -972,7 +972,8 @@ struct task_struct {
972 unsigned int rt_priority; 972 unsigned int rt_priority;
973 cputime_t utime, stime; 973 cputime_t utime, stime;
974 unsigned long nvcsw, nivcsw; /* context switch counts */ 974 unsigned long nvcsw, nivcsw; /* context switch counts */
975 struct timespec start_time; 975 struct timespec start_time; /* monotonic time */
976 struct timespec real_start_time; /* boot based time */
976/* mm fault and swap info: this can arguably be seen as either mm-specific or thread-specific */ 977/* mm fault and swap info: this can arguably be seen as either mm-specific or thread-specific */
977 unsigned long min_flt, maj_flt; 978 unsigned long min_flt, maj_flt;
978 979