Re: [PATCH] cputime: Fix timeval/timespec-->cputime conversion

From: Arnd Bergmann
Date: Tue Feb 02 2016 - 07:53:24 EST


On Tuesday 02 February 2016 11:38:34 zengtao wrote:
> The datatype __kernel_time_t is u32 on 32bit platform,
> it will easily get overflow, so force u64 conversion.
>
> Currently the following function will be affected:
> 1. setitimer()
> 2. timer_create/timer_settime()
> 3. sys_clock_nanosleep
> And this will occur on MIPS32 and ARM32 with "Full dynticks CPU
> time accounting" enabled, which is required for CONFIG_NO_HZ_FULL.
>
> Signed-off-by: zengtao <prime.zeng@xxxxxxxxxx>
>

The patch looks good now, but please add a line saying

Fixes: 31c1fc818715 ("ARM: Kconfig: allow full nohz CPU accounting")

below your Signed-off-by, so everyone can figure out whether they
need this backported or not.

Reviewed-by: Arnd Bergmann <arnd@xxxxxxxx>

Thomas, do you want to take this through the tip tree?