time/sched_clock: Use raw_read_seqcount_latch() during suspend
[linux-2.6-microblaze.git] / kernel / time / sched_clock.c
index 1c03eec..8c6b5fe 100644 (file)
@@ -258,7 +258,7 @@ void __init generic_sched_clock_init(void)
  */
 static u64 notrace suspended_sched_clock_read(void)
 {
-       unsigned int seq = raw_read_seqcount(&cd.seq);
+       unsigned int seq = raw_read_seqcount_latch(&cd.seq);
 
        return cd.read_data[seq & 1].epoch_cyc;
 }