]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
time: Rename tsk->real_start_time to ->start_boottime
authorPeter Zijlstra <peterz@infradead.org>
Thu, 7 Nov 2019 10:07:58 +0000 (11:07 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 13 Nov 2019 10:09:49 +0000 (11:09 +0100)
Since it stores CLOCK_BOOTTIME, not, as the name suggests,
CLOCK_REALTIME, let's rename ->real_start_time to ->start_bootime.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
fs/exec.c
fs/proc/array.c
include/linux/sched.h
kernel/fork.c

index 555e93c7dec82ae6b81db2c5402d838824e50c3c..f4d0f3acf861567b0fde29e44964fc30d5841615 100644 (file)
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -1132,7 +1132,7 @@ static int de_thread(struct task_struct *tsk)
                 * also take its birthdate (always earlier than our own).
                 */
                tsk->start_time = leader->start_time;
-               tsk->real_start_time = leader->real_start_time;
+               tsk->start_boottime = leader->start_boottime;
 
                BUG_ON(!same_thread_group(leader, tsk));
                BUG_ON(has_group_leader_pid(tsk));
index 46dcb6f0eccf0f0f85314e968646a8edeebda105..5efaf3708ec69e5ff41525c8faae06773c231e31 100644 (file)
@@ -533,7 +533,7 @@ static int do_task_stat(struct seq_file *m, struct pid_namespace *ns,
        nice = task_nice(task);
 
        /* convert nsec -> ticks */
-       start_time = nsec_to_clock_t(task->real_start_time);
+       start_time = nsec_to_clock_t(task->start_boottime);
 
        seq_put_decimal_ull(m, "", pid_nr_ns(pid, ns));
        seq_puts(m, " (");
index 67a1d86981a9d342a0ca1f0fefd7532526dfe467..254128952eab36b8001eb1c8b1e5bb1619d1e904 100644 (file)
@@ -857,7 +857,7 @@ struct task_struct {
        u64                             start_time;
 
        /* Boot based time in nsecs: */
-       u64                             real_start_time;
+       u64                             start_boottime;
 
        /* MM fault and swap info: this can arguably be seen as either mm-specific or thread-specific: */
        unsigned long                   min_flt;
index bcdf5312521036486b7613e7499d7174e62526c6..1392ee8f4848f84ca4cba30e38a51efda2672a76 100644 (file)
@@ -2130,7 +2130,7 @@ static __latent_entropy struct task_struct *copy_process(
         */
 
        p->start_time = ktime_get_ns();
-       p->real_start_time = ktime_get_boottime_ns();
+       p->start_boottime = ktime_get_boottime_ns();
 
        /*
         * Make it visible to the rest of the system, but dont wake it up yet.