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

Frederic Weisbecker
2017-02-22T14:30:27Z

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"