]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[S390] Fix timeval regression on s390
authorChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 19 Feb 2009 14:19:00 +0000 (15:19 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 19 Feb 2009 14:19:19 +0000 (15:19 +0100)
commitd5cd0343d2878b66e25e044f644563c6bf708833
treef5ac4a6f0fe9e37c46d718df0f365b77883184bb
parente2e5a0f2b100a5204d27def8bbf73333d1710be2
[S390] Fix timeval regression on s390

commit aa5e97ce4bbc9d5daeec16b1d15bb3f6b7b4f4d4
[PATCH] improve precision of process accounting.

Introduced a timing regression:
-bash-3.2# time ls
real    0m0.006s
user    0m1.754s
sys     0m1.094s

The problem was introduced by an error in cputime_to_timeval.
Cputime is now 1/4096 microsecond, therefore, we have to divide
the remainder with 4096 to get the microseconds.

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