diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2006-05-21 02:00:25 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-05-21 23:59:21 +0400 |
commit | 92f63cd000059366af18712367216d96180e0ec0 (patch) | |
tree | 4f88c3875afaa8183d6cfcff685e03ac7684d82d /scripts | |
parent | 0662b71322e211dba9a4bc0e6fbca7861a2b5a7d (diff) | |
download | linux-92f63cd000059366af18712367216d96180e0ec0.tar.xz |
[PATCH] s390: next_timer_interrupt overflow in stop_hz_timer
The 32 bit unsigned substraction (next - jiffies) in stop_hz_timer can
overflow if jiffies gets advanced between next_timer_interrupt and the read
under the xtime lock. The cast to a u64 then results in a large value
which causes the cpu to wait too long. Fix this by casting next and
jiffies independently to u64 before subtracting them.
(Spotted by Zachary Amsden <zach@vmware.com>)
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions