kernel-fxtec-pro1x/arch/s390
Jan Glauber 9dbafa5368 [PATCH] s390: overflow in sched_clock
The least significant bit of the TOD clock value returned by get_clock
is the 4096th part of a microsecond. To get to nanoseconds the value
needs to be divided by 4096 and multiplied with 1000.

The current method multiplies first and then shifts the value to make the
result as precise as possible.  The disadvantage is that the multiplication
with 1000 will overflow shortly after 52 days.  sched_clock is used by the
scheduler for time stamp deltas, if an overflow occurs between two time stamps
the scheduler will get confused.

With the patch the problem occurs only after approx.  one year, so the chance
to run into this overflow is extremly low.

Signed-off-by: Jan Glauber <jan.glauber@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-02-01 08:53:23 -08:00
..
appldata [PATCH] s390: cleanup Kconfig 2006-01-06 08:33:53 -08:00
boot [PATCH] use ${CROSS_COMPILE}installkernel in arch/*/boot/install.sh 2005-06-23 09:45:07 -07:00
crypto [PATCH] s390: sha256 crypto code fix 2006-01-14 18:27:08 -08:00
kernel [PATCH] s390: overflow in sched_clock 2006-02-01 08:53:23 -08:00
lib [PATCH] s390: Remove CVS generated information 2006-02-01 08:53:23 -08:00
math-emu Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mm [PATCH] s390: cleanup Kconfig 2006-01-06 08:33:53 -08:00
oprofile [PATCH] s390: add oprofile callgraph support 2006-01-06 08:33:50 -08:00
defconfig [PATCH] s390: cleanup Kconfig 2006-01-06 08:33:53 -08:00
Kconfig [PATCH] "tiny-make-id16-support-optional" fixes 2006-01-10 08:01:23 -08:00
Kconfig.debug Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile [PATCH] s390: cleanup Kconfig 2006-01-06 08:33:53 -08:00