]> git.baikalelectronics.ru Git - kernel.git/commit
s390/cputime: fix 31-bit compile
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 8 Dec 2014 12:19:12 +0000 (13:19 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 8 Dec 2014 13:03:43 +0000 (14:03 +0100)
commit87491786ecb7a6141857b064faa84f419bdec4a6
tree85f8346b5882b63f840a78d5beb8bd88a0eaeb13
parent306bfc685988643d9527bb8e9144664bcca91e60
s390/cputime: fix 31-bit compile

git commit 122c40f8597101f2624f81dbaa7af5706bb77f32
"s390: translate cputime magic constants to macros"
introduce a built error for 31-bit:

  kernel/built-in.o: In function `posix_cpu_timer_set':
  posix-cpu-timers.c:(.text+0x2a8cc): undefined reference to `__udivdi3'

The original code is actually broken for 31-bit and has been
corrected by the above commit by forcing the compiler to use
64-bit arithmetic through the CPUTIME_PER_USEC define.

To fix the compile error replace the 64-bit division with
a call to __div().

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/cputime.h