mirror of
https://git.FreeBSD.org/src.git
synced 2025-02-04 17:15:50 +00:00
The changes in r210542 moved setting counter_upper and counter_lower_last
outside the critical section - fix that. Reported by: mav
This commit is contained in:
parent
c73b6b8f1d
commit
ee37b5e791
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=210547
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user