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

From: Alex Shi
Date: Tue Jul 23 2019 - 02:10:16 EST



Forget this patchset. I sent out a new 3 patches.

Thanks
Alex


在 2019/7/22 下午3:38, Alex Shi 写道:
> The irqtime_account_process_tick path was introduced for precise ns irq
> time account from commit abb74cefa9c6 ("sched: Export ns irqtimes
> through /proc/stat") while account_process_tick still use jiffes. This
> divide isn't necessary especially now both paths are ns precison.
>
> Move out the irqtime_account_process_tick func from IRQ_TIME_ACCOUNTING.
> So it do generally same things as account_process_tick whenever if
> IRQ_TIME_ACCOUNTING set or if sched_clock_irqtime enabled.