android_kernel_xiaomi_sm8350/include
Paul Mackerras fa13a5a1f2 sched: restore deterministic CPU accounting on powerpc
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 update_process_times
that updates utime and stime into a separate function called
account_process_tick.  If CONFIG_VIRT_CPU_ACCOUNTING is not defined,
there is a version of account_process_tick in kernel/timer.c that
simply accounts a whole tick to either utime or stime as before.  If
CONFIG_VIRT_CPU_ACCOUNTING is defined, then arch code gets to
implement account_process_tick.

This also lets us simplify the s390 code a bit; it means that the s390
timer interrupt can now call update_process_times even when
CONFIG_VIRT_CPU_ACCOUNTING is turned on, and can just implement a
suitable account_process_tick().

account_process_tick() now takes the task_struct * as an argument.
Tested both with and without CONFIG_VIRT_CPU_ACCOUNTING.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2007-11-09 22:39:38 +01:00
..
acpi
asm-alpha
asm-arm [ARM] 4634/1: DaVinci GPIO header build fix 2007-10-31 15:21:52 +00:00
asm-avr32
asm-blackfin Blackfin arch: use a less common define name in BF549 2007-10-30 12:04:53 +08:00
asm-cris
asm-frv
asm-generic
asm-h8300
asm-ia64 [IA64] fix typo in per_cpu_offset 2007-10-29 11:21:45 -07:00
asm-m32r
asm-m68k
asm-m68knommu m68knommu: fix pread/pwrite defines 2007-11-05 15:12:33 -08:00
asm-mips Use i8253.c lock for PC speaker on MIPS, too. 2007-11-02 19:39:18 -07:00
asm-parisc
asm-powerpc cpm_load_patch() - declartion conflict 2007-11-05 11:38:29 -08:00
asm-ppc
asm-s390
asm-sh sh: Decouple 4k and soft/hardirq stacks. 2007-11-02 12:16:51 +09:00
asm-sh64 sh64: fix dma_cache_sync() compilation 2007-10-30 13:09:01 +09:00
asm-sparc
asm-sparc64 [SPARC64]: Fix linkage of enormous kernels. 2007-10-31 15:30:56 -07:00
asm-um x86 merge fallout: uml 2007-10-29 07:41:32 -07:00
asm-v850
asm-x86 lguest: make async_hcall() static 2007-11-05 21:53:29 +11:00
asm-xtensa
crypto
keys
linux sched: restore deterministic CPU accounting on powerpc 2007-11-09 22:39:38 +01:00
math-emu
media
mtd
net cleanup asm/scatterlist.h includes 2007-11-02 08:47:06 +01:00
pcmcia
rdma cleanup asm/scatterlist.h includes 2007-11-02 08:47:06 +01:00
rxrpc
scsi SCSI: add asynchronous event notification API 2007-11-03 22:23:02 -04:00
sound
video
xen
Kbuild