svn commit: r210547 - head/sys/mips/rmi

[ Available lists | Index of svn-src-head | Month of Jul 2010 | Week of 27 Jul 2010 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Jayachandran C. <jchandra@FreeBSD.org>
Date
27 Jul 2010 17:33:51
Subject
svn commit: r210547 - head/sys/mips/rmi
Message-ID
201007271733.o6RHXpWu061722@svn.freebsd.org


[ Hide this part ]
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);
}


Elapsed time: 0.082 seconds