]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
sched, time: Fix build error with 64 bit cputime_t on 32 bit systems
authorRik van Riel <riel@redhat.com>
Tue, 30 Sep 2014 19:59:47 +0000 (15:59 -0400)
committerIngo Molnar <mingo@kernel.org>
Fri, 3 Oct 2014 03:46:55 +0000 (05:46 +0200)
commit347abad981c1ef815ea5ba861adba6a8c6aa1580
treeea18690dcb71d23c29a92a602c1d5373f9360e7a
parent43f4d66637bc752e93a77ff2536474a5a3888442
sched, time: Fix build error with 64 bit cputime_t on 32 bit systems

On 32 bit systems cmpxchg cannot handle 64 bit values, so
some additional magic is required to allow a 32 bit system
with CONFIG_VIRT_CPU_ACCOUNTING_GEN=y enabled to build.

Make sure the correct cmpxchg function is used when doing
an atomic swap of a cputime_t.

Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Rik van Riel <riel@redhat.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: umgwanakikbuti@gmail.com
Cc: fweisbec@gmail.com
Cc: srao@redhat.com
Cc: lwoodman@redhat.com
Cc: atheurer@redhat.com
Cc: oleg@redhat.com
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Paul Mackerras <paulus@samba.org>
Cc: linux390@de.ibm.com
Cc: linux-arch@vger.kernel.org
Cc: linuxppc-dev@lists.ozlabs.org
Cc: linux-s390@vger.kernel.org
Link: http://lkml.kernel.org/r/20140930155947.070cdb1f@annuminas.surriel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/powerpc/include/asm/cputime.h
arch/s390/include/asm/cputime.h
include/asm-generic/cputime_jiffies.h
include/asm-generic/cputime_nsecs.h
kernel/sched/cputime.c