summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2014-07-16 21:04:32 +0000
committerJohn Stultz <john.stultz@linaro.org>2014-07-23 10:18:05 -0700
commit57e0be041d9e21a7397eed3b67a7936ac4ac83c0 (patch)
tree789396df941faa3b43bd61b27b675157a423070b /fs
parentd560fed6abe0f9975b509e4fb824e08ac19adc93 (diff)
downloadblackbird-obmc-linux-57e0be041d9e21a7397eed3b67a7936ac4ac83c0.tar.gz
blackbird-obmc-linux-57e0be041d9e21a7397eed3b67a7936ac4ac83c0.zip
sched: Make task->real_start_time nanoseconds based
Simplify the only user of this data by removing the timespec conversion. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/proc/array.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/proc/array.c b/fs/proc/array.c
index 64db2bceac59..d7f9199217bb 100644
--- a/fs/proc/array.c
+++ b/fs/proc/array.c
@@ -473,13 +473,8 @@ static int do_task_stat(struct seq_file *m, struct pid_namespace *ns,
priority = task_prio(task);
nice = task_nice(task);
- /* Temporary variable needed for gcc-2.96 */
- /* convert timespec -> nsec*/
- start_time =
- (unsigned long long)task->real_start_time.tv_sec * NSEC_PER_SEC
- + task->real_start_time.tv_nsec;
/* convert nsec -> ticks */
- start_time = nsec_to_clock_t(start_time);
+ start_time = nsec_to_clock_t(task->real_start_time);
seq_printf(m, "%d (%s) %c", pid_nr_ns(pid, ns), tcomm, state);
seq_put_decimal_ll(m, ' ', ppid);
OpenPOWER on IntegriCloud