ARM: 7643/1: sched: correct update_sched_clock()
[profile/ivi/kernel-adaptation-intel-automotive.git] / arch / arm / kernel / sched_clock.c
index fc6692e..bd6f56b 100644 (file)
@@ -93,11 +93,11 @@ static void notrace update_sched_clock(void)
         * detectable in cyc_to_fixed_sched_clock().
         */
        raw_local_irq_save(flags);
-       cd.epoch_cyc = cyc;
+       cd.epoch_cyc_copy = cyc;
        smp_wmb();
        cd.epoch_ns = ns;
        smp_wmb();
-       cd.epoch_cyc_copy = cyc;
+       cd.epoch_cyc = cyc;
        raw_local_irq_restore(flags);
 }