Skip to content

Commit 29807c5

Browse files
Frederic WeisbeckerThomas Gleixner
authored andcommitted
tick/sched: Remove unused fields
Remove fields after the dyntick-idle cputime migration to scheduler code. Signed-off-by: Frederic Weisbecker <frederic@kernel.org> Signed-off-by: Thomas Gleixner <tglx@kernel.org> Tested-by: Shrikanth Hegde <sshegde@linux.ibm.com> Link: https://patch.msgid.link/20260508131647.43868-11-frederic@kernel.org
1 parent a5fe724 commit 29807c5

3 files changed

Lines changed: 1 addition & 21 deletions

File tree

kernel/time/tick-sched.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ struct tick_device {
4444
* to resume the tick timer operation in the timeline
4545
* when the CPU returns from nohz sleep.
4646
* @next_tick: Next tick to be fired when in dynticks mode.
47-
* @idle_jiffies: jiffies at the entry to idle for idle time accounting
4847
* @idle_waketime: Time when the idle was interrupted
49-
* @idle_sleeptime_seq: sequence counter for data consistency
5048
* @idle_entrytime: Time when the idle call was entered
5149
* @last_jiffies: Base jiffies snapshot when next event was last computed
5250
* @timer_expires_base: Base time clock monotonic for @timer_expires
@@ -55,9 +53,6 @@ struct tick_device {
5553
* @idle_expires: Next tick in idle, for debugging purpose only
5654
* @idle_calls: Total number of idle calls
5755
* @idle_sleeps: Number of idle calls, where the sched tick was stopped
58-
* @idle_exittime: Time when the idle state was left
59-
* @idle_sleeptime: Sum of the time slept in idle with sched tick stopped
60-
* @iowait_sleeptime: Sum of the time slept in idle with sched tick stopped, with IO outstanding
6156
* @tick_dep_mask: Tick dependency mask - is set, if someone needs the tick
6257
* @check_clocks: Notification mechanism about clocksource changes
6358
*/
@@ -73,12 +68,10 @@ struct tick_sched {
7368
struct hrtimer sched_timer;
7469
ktime_t last_tick;
7570
ktime_t next_tick;
76-
unsigned long idle_jiffies;
7771
ktime_t idle_waketime;
7872
unsigned int got_idle_tick;
7973

8074
/* Idle entry */
81-
seqcount_t idle_sleeptime_seq;
8275
ktime_t idle_entrytime;
8376

8477
/* Tick stop */
@@ -90,11 +83,6 @@ struct tick_sched {
9083
unsigned long idle_calls;
9184
unsigned long idle_sleeps;
9285

93-
/* Idle exit */
94-
ktime_t idle_exittime;
95-
ktime_t idle_sleeptime;
96-
ktime_t iowait_sleeptime;
97-
9886
/* Full dynticks handling */
9987
atomic_t tick_dep_mask;
10088

kernel/time/timer_list.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,14 +152,10 @@ static void print_cpu(struct seq_file *m, int cpu, u64 now)
152152
P_flag(highres, TS_FLAG_HIGHRES);
153153
P_ns(last_tick);
154154
P_flag(tick_stopped, TS_FLAG_STOPPED);
155-
P(idle_jiffies);
156155
P(idle_calls);
157156
P(idle_sleeps);
158157
P_ns(idle_entrytime);
159158
P_ns(idle_waketime);
160-
P_ns(idle_exittime);
161-
P_ns(idle_sleeptime);
162-
P_ns(iowait_sleeptime);
163159
P(last_jiffies);
164160
P(next_timer);
165161
P_ns(idle_expires);
@@ -256,7 +252,7 @@ static void timer_list_show_tickdevices_header(struct seq_file *m)
256252

257253
static inline void timer_list_header(struct seq_file *m, u64 now)
258254
{
259-
SEQ_printf(m, "Timer List Version: v0.10\n");
255+
SEQ_printf(m, "Timer List Version: v0.11\n");
260256
SEQ_printf(m, "HRTIMER_MAX_CLOCK_BASES: %d\n", HRTIMER_MAX_CLOCK_BASES);
261257
SEQ_printf(m, "now at %Ld nsecs\n", (unsigned long long)now);
262258
SEQ_printf(m, "\n");

scripts/gdb/linux/timerlist.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,10 @@ def print_cpu(hrtimer_bases, cpu, max_clock_bases):
9090
text += f" .{'nohz':15s}: {int(bool(ts['flags'] & TS_FLAG_NOHZ))}\n"
9191
text += f" .{'last_tick':15s}: {ts['last_tick']}\n"
9292
text += f" .{'tick_stopped':15s}: {int(bool(ts['flags'] & TS_FLAG_STOPPED))}\n"
93-
text += f" .{'idle_jiffies':15s}: {ts['idle_jiffies']}\n"
9493
text += f" .{'idle_calls':15s}: {ts['idle_calls']}\n"
9594
text += f" .{'idle_sleeps':15s}: {ts['idle_sleeps']}\n"
9695
text += f" .{'idle_entrytime':15s}: {ts['idle_entrytime']} nsecs\n"
9796
text += f" .{'idle_waketime':15s}: {ts['idle_waketime']} nsecs\n"
98-
text += f" .{'idle_exittime':15s}: {ts['idle_exittime']} nsecs\n"
99-
text += f" .{'idle_sleeptime':15s}: {ts['idle_sleeptime']} nsecs\n"
100-
text += f" .{'iowait_sleeptime':15s}: {ts['iowait_sleeptime']} nsecs\n"
10197
text += f" .{'last_jiffies':15s}: {ts['last_jiffies']}\n"
10298
text += f" .{'next_timer':15s}: {ts['next_timer']}\n"
10399
text += f" .{'idle_expires':15s}: {ts['idle_expires']} nsecs\n"

0 commit comments

Comments
 (0)