Author: jchandra
Date: Tue Jul 27 17:33:51 2010
New Revision: 210547
URL: http://svn.freebsd.org/changeset/base/210547

Log:
  The changes in r210542 moved setting counter_upper and counter_lower_last
  outside the critical section - fix that.
  
  Reported by:  mav

Modified:
  head/sys/mips/rmi/tick.c

Modified: head/sys/mips/rmi/tick.c
==============================================================================
--- head/sys/mips/rmi/tick.c    Tue Jul 27 17:33:02 2010        (r210546)
+++ head/sys/mips/rmi/tick.c    Tue Jul 27 17:33:51 2010        (r210547)
@@ -120,10 +120,10 @@ tick_ticker(void)
        if (ticktock < t_lower_last)
                t_upper++;
        t_lower_last = ticktock;
-       critical_exit();
-
        DPCPU_SET(counter_upper, t_upper);
        DPCPU_SET(counter_lower_last, t_lower_last);
+       critical_exit();
+
        ret = ((uint64_t)t_upper << 32) | t_lower_last;
        return (ret);
 }
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to