Skip to content

Commit cf25e24

Browse files
Peter ZijlstraIngo Molnar
authored andcommitted
time: Rename tsk->real_start_time to ->start_boottime
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) <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: [email protected] Signed-off-by: Ingo Molnar <[email protected]>
1 parent 3bbc53f commit cf25e24

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

fs/exec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,7 @@ static int de_thread(struct task_struct *tsk)
11321132
* also take its birthdate (always earlier than our own).
11331133
*/
11341134
tsk->start_time = leader->start_time;
1135-
tsk->real_start_time = leader->real_start_time;
1135+
tsk->start_boottime = leader->start_boottime;
11361136

11371137
BUG_ON(!same_thread_group(leader, tsk));
11381138
BUG_ON(has_group_leader_pid(tsk));

fs/proc/array.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ static int do_task_stat(struct seq_file *m, struct pid_namespace *ns,
533533
nice = task_nice(task);
534534

535535
/* convert nsec -> ticks */
536-
start_time = nsec_to_clock_t(task->real_start_time);
536+
start_time = nsec_to_clock_t(task->start_boottime);
537537

538538
seq_put_decimal_ull(m, "", pid_nr_ns(pid, ns));
539539
seq_puts(m, " (");

include/linux/sched.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,7 @@ struct task_struct {
857857
u64 start_time;
858858

859859
/* Boot based time in nsecs: */
860-
u64 real_start_time;
860+
u64 start_boottime;
861861

862862
/* MM fault and swap info: this can arguably be seen as either mm-specific or thread-specific: */
863863
unsigned long min_flt;

kernel/fork.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2130,7 +2130,7 @@ static __latent_entropy struct task_struct *copy_process(
21302130
*/
21312131

21322132
p->start_time = ktime_get_ns();
2133-
p->real_start_time = ktime_get_boottime_ns();
2133+
p->start_boottime = ktime_get_boottime_ns();
21342134

21352135
/*
21362136
* Make it visible to the rest of the system, but dont wake it up yet.

0 commit comments

Comments
 (0)