Skip to contentSkip to conversation

sched/cputime: remove irqtime_account_idle_ticks

PATCH In review Alex Shi 2 participants 3 messages Jan 16, 2020 – Jan 18, 2020 2 messages not in the archive Scheduler

lore
Share & tools
lore

Alex Shi

author
#0 lore raw

PATCH 1/1 sched/cputime: remove irqtime_account_idle_ticks

irqtime_account_idle_ticks just add longer call path w/o enough meaning. We don't bother remove this function to simply code and reduce a bit object size of kernel.

Cc Ingo Molnar <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Juri Lelli <[email protected]>
Cc Vincent Guittot <[email protected]>
Cc Dietmar Eggemann <[email protected]>
Cc Steven Rostedt <[email protected]>
Cc Ben Segall <[email protected]>
Cc Mel Gorman <[email protected]>
---
 kernel/sched/cputime.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
kernel/sched/cputime.c +1 -6
index cff3e656566d..17640d145e44 100644
@@ -390,12 +390,7 @@ static void irqtime_account_process_tick(struct task_struct *p, int user_tick,
 	}
 }
 
-static void irqtime_account_idle_ticks(int ticks)
-{
-	irqtime_account_process_tick(current, 0, ticks);
-}
 #else /* CONFIG_IRQ_TIME_ACCOUNTING */
-static inline void irqtime_account_idle_ticks(int ticks) { }
 static inline void irqtime_account_process_tick(struct task_struct *p, int user_tick,
 						int nr_ticks) { }
 #endif /* CONFIG_IRQ_TIME_ACCOUNTING */
@@ -505,7 +500,7 @@ void account_idle_ticks(unsigned long ticks)
 	u64 cputime, steal;
 
 	if (sched_clock_irqtime) {
-		irqtime_account_idle_ticks(ticks);
+		irqtime_account_process_tick(current, 0, ticks);
 		return;
 	}
 
Signature · 1 line
1.8.3.1
author
#1 lore raw
Quoted 3 lines · Alex Shi

irqtime_account_idle_ticks just add longer call path w/o enough meaning. We don't bother remove this function to simply code and reduce a bit object size of kernel.

Sorry, above commit log need to revise as following:

irqtime_account_idle_ticks just add longer call path w/o enough meaning. We'd better to remove this function to simply code and reduce a bit object size of kernel.

Quoted 42 lines
Cc Ingo Molnar <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Juri Lelli <[email protected]>
Cc Vincent Guittot <[email protected]>
Cc Dietmar Eggemann <[email protected]>
Cc Steven Rostedt <[email protected]>
Cc Ben Segall <[email protected]>
Cc Mel Gorman <[email protected]>
---
 kernel/sched/cputime.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
kernel/sched/cputime.c +1 -6
index cff3e656566d..17640d145e44 100644
@@ -390,12 +390,7 @@ static void irqtime_account_process_tick(struct task_struct *p, int user_tick,
 	}
 }
 
-static void irqtime_account_idle_ticks(int ticks)
-{
-	irqtime_account_process_tick(current, 0, ticks);
-}
 #else /* CONFIG_IRQ_TIME_ACCOUNTING */
-static inline void irqtime_account_idle_ticks(int ticks) { }
 static inline void irqtime_account_process_tick(struct task_struct *p, int user_tick,
 						int nr_ticks) { }
 #endif /* CONFIG_IRQ_TIME_ACCOUNTING */
@@ -505,7 +500,7 @@ void account_idle_ticks(unsigned long ticks)
 	u64 cputime, steal;
 
 	if (sched_clock_irqtime) {
-		irqtime_account_idle_ticks(ticks);
+		irqtime_account_process_tick(current, 0, ticks);
 		return;
 	}
 

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw
Quoted 17 lines · Alex Shi
Quoted 14 lines · Tao Zhou
Quoted 12 lines · Alex Shi
Quoted 3 lines · Alex Shi

irqtime_account_idle_ticks just add longer call path w/o enough meaning. We don't bother remove this function to simply code and reduce a bit object size of kernel.

Sorry, above commit log need to revise as following:

irqtime_account_idle_ticks just add longer call path w/o enough meaning. We'd better to remove this function to simply code and reduce a bit object size of kernel.

Quoted 5 lines
Quoted 1 line

Looks good and better to me.

Thanks!

Why not reply to lkml openly? :)

Sorry, I want to.
The mail can not send if dest/cc include '[email protected]' No VPN from me. I will try another mail address. Any advice?