[PATCH] s390: stop_hz_timer vs. xtime updates
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 7 Nov 2005 08:59:02 +0000 (00:59 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 7 Nov 2005 15:53:32 +0000 (07:53 -0800)
commit1b44e98d7d0754bbcf0222baf179f5e2e3dbea7b
treec4e69506205a175fa9675e5dcec1ad4944c4b87a
parente1c3ad96f662bf1071a71feffadfe0f7604f14e2
[PATCH] s390: stop_hz_timer vs. xtime updates

The calculation of the value return by next_timer_interrupt from jiffies to
jiffies_64 is racy against xtime updates.  We need to protect the calculation
with read_seqbegin/read_seqretry.

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>
arch/s390/kernel/time.c