Re: [PATCH v2] Restore deterministic CPU accounting on powerpc

2007-11-04 Thread Ingo Molnar
* Paul Mackerras <[EMAIL PROTECTED]> wrote: > Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]> > --- > account_process_tick now takes the task_struct * as an argument. > Tested both with and without CONFIG_VIRT_CPU_ACCOUNTING. thanks, applied. Ingo _

[PATCH v2] Restore deterministic CPU accounting on powerpc

2007-11-03 Thread Paul Mackerras
Since powerpc started using CONFIG_GENERIC_CLOCKEVENTS, the deterministic CPU accounting (CONFIG_VIRT_CPU_ACCOUNTING) has been broken on powerpc, because we end up counting user time twice: once in timer_interrupt() and once in update_process_times(). This fixes the problem by pulling the code in