Re: [PATCH 2/2] cputime: remove duplicate code in account_process_tick

2019-07-10 Thread Alex Shi
在 2019/7/10 下午10:15, Peter Zijlstra 写道: > On Tue, Jul 09, 2019 at 02:01:00PM +0800, Alex Shi wrote: >> In funcation account_process_tick, func actually do same things with >> irqtime_account_process_tick, whenever if IRQ_TIME_ACCOUNTING set or >> if sched_clock_irqtime enabled. >> >> So it's bet

Re: [PATCH 2/2] cputime: remove duplicate code in account_process_tick

2019-07-10 Thread Peter Zijlstra
On Tue, Jul 09, 2019 at 02:01:00PM +0800, Alex Shi wrote: > In funcation account_process_tick, func actually do same things with > irqtime_account_process_tick, whenever if IRQ_TIME_ACCOUNTING set or > if sched_clock_irqtime enabled. > > So it's better to reuse one function for both. But it's not

[PATCH 2/2] cputime: remove duplicate code in account_process_tick

2019-07-08 Thread Alex Shi
In funcation account_process_tick, func actually do same things with irqtime_account_process_tick, whenever if IRQ_TIME_ACCOUNTING set or if sched_clock_irqtime enabled. So it's better to reuse one function for both. Signed-off-by: Alex Shi Cc: Ingo Molnar Cc: Peter Zijlstra Cc: Frederic Weisb