[S390] etr: Add barrier() to etr_sync_cpu_start().
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Wed, 21 Feb 2007 09:55:15 +0000 (10:55 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 21 Feb 2007 09:55:15 +0000 (10:55 +0100)
commit6c732de2d3673e28c6a976c98ee6ba4d197a919a
tree759b9e1d5a1a8ac33dee9ad5eb670ff99cb2d5ea
parent118bcd31b309d12638f67729d5d96d4974750249
[S390] etr: Add barrier() to etr_sync_cpu_start().

Force reading of *in_sync in while loop. Loops where the content that
is checked for is changed by a different cpu always should have some
sort of barrier() semantics.
Otherwise this might lead to very subtle bugs.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/time.c