Reprase r271616 comments.
Submitted by: alc MFC after: 1 month
This commit is contained in:
parent
066da8050b
commit
ae9e9b4fda
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=271713
@ -1039,8 +1039,8 @@ tdq_notify(struct tdq *tdq, struct thread *td)
|
||||
return;
|
||||
|
||||
/*
|
||||
* Make sure that tdq_load updated before calling this function
|
||||
* is globally visible before we read tdq_cpu_idle. Idle thread
|
||||
* Make sure that our caller's earlier update to tdq_load is
|
||||
* globally visible before we read tdq_cpu_idle. Idle thread
|
||||
* accesses both of them without locks, and the order is important.
|
||||
*/
|
||||
mb();
|
||||
|
Loading…
Reference in New Issue
Block a user