Re: [GIT PULL] cputime: Convert core use of cputime_t to nsecs

From: Frederic Weisbecker
Date: Wed Feb 22 2017 - 09:30:29 EST


On Tue, Feb 21, 2017 at 01:08:24PM +0800, hejianet wrote:
> Hi Frederic
>
> Do we need to support CONFIG_VIRT_CPU_ACCOUNTING_NATIVE=n on ppc64le?
>
> If yes, I got a compiling error after applying your patch set:
>
> arch/powerpc/kernel/time.c:712:2: error: implicit declaration of function
> âÃÃcputime_to_nsecsâÃà [-Werror=implicit-function-declaration]
> return local_clock() -
> cputime_to_nsecs(kcpustat_this_cpu->cpustat[CPUTIME_STEAL]);
> ^
>
> I thought it is due to CONFIG_VIRT_CPU_ACCOUNTING_NATIVE=n on my ppc64le server.
> My kernel config:
> # grep -n CONFIG_VIRT_CPU .config
> 136:CONFIG_VIRT_CPU_ACCOUNTING=y
> 137:CONFIG_VIRT_CPU_ACCOUNTING_GEN=y

Thanks for reporting! I posted a fix yesterday:

"powerpc: Remove leftover cputime_to_nsecs call causing build error"
https://lkml.org/lkml/2017/2/21/393