powerpc32: provide VIRT_CPU_ACCOUNTING
authorChristophe Leroy <christophe.leroy@c-s.fr>
Tue, 17 May 2016 06:33:46 +0000 (08:33 +0200)
committerScott Wood <oss@buserror.net>
Sat, 9 Jul 2016 06:43:50 +0000 (01:43 -0500)
commitc223c90386bc2306510e0ceacd768a0123ff2a2f
tree520a7bc88a7e36bbd0615cc5a035337a36729fb8
parent1afbf61750364864adf6a17818c5bbbea4dea531
powerpc32: provide VIRT_CPU_ACCOUNTING

This patch provides VIRT_CPU_ACCOUTING to PPC32 architecture.
PPC32 doesn't have the PACA structure, so we use the task_info
structure to store the accounting data.

In order to reuse on PPC32 the PPC64 functions, all u64 data has
been replaced by 'unsigned long' so that it is u32 on PPC32 and
u64 on PPC64

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Scott Wood <oss@buserror.net>
15 files changed:
arch/powerpc/Kconfig
arch/powerpc/include/asm/accounting.h [new file with mode: 0644]
arch/powerpc/include/asm/cputime.h
arch/powerpc/include/asm/exception-64s.h
arch/powerpc/include/asm/paca.h
arch/powerpc/include/asm/ppc_asm.h
arch/powerpc/include/asm/reg.h
arch/powerpc/include/asm/thread_info.h
arch/powerpc/kernel/asm-offsets.c
arch/powerpc/kernel/entry_32.S
arch/powerpc/kernel/entry_64.S
arch/powerpc/kernel/exceptions-64e.S
arch/powerpc/kernel/time.c
arch/powerpc/platforms/Kconfig.cputype
arch/powerpc/xmon/xmon.c