sched/cputime: remove irqtime_account_idle_ticks
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.
--- kernel/sched/cputime.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
kernel/sched/cputime.c +1 -6
@@ -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
Quoted 3 lines · Alex Shi
irqtime_account_idle_ticksjust 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
Signed-off-by Alex Shi <[email protected]>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@@ -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]
Quoted 17 lines · Alex Shi
Quoted 14 lines · Tao Zhou
Quoted 12 lines · Alex Shi
Quoted 3 lines · Alex Shi
irqtime_account_idle_ticksjust 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_ticksjust 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?