powerpc/time: isolate scaled cputime accounting in dedicated functions.
authorChristophe Leroy <christophe.leroy@c-s.fr>
Thu, 2 Aug 2018 07:53:57 +0000 (07:53 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 20 Oct 2018 02:26:47 +0000 (13:26 +1100)
commitb38a181c11d0b5e84b40732dbb06cc9d68140d60
treef0485ab72c027ff90020ad5b4d046d6e89e80460
parentfb978ca207743badfe7efd9eebe68bcbb4969f79
powerpc/time: isolate scaled cputime accounting in dedicated functions.

scaled cputime is only meaningfull when the processor has
SPURR and/or PURR, which means only on PPC64.

In preparation of the following patch that will remove
CONFIG_ARCH_HAS_SCALED_CPUTIME on PPC32, this patch moves
all scaled cputing accounting logic into dedicated functions.

This patch doesn't change any functionality. It's only code
reorganisation.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/time.c