Reprase r271616 comments.
Submitted by: alc MFC after: 1 month
This commit is contained in:
parent
066da8050b
commit
ae9e9b4fda
@ -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…
x
Reference in New Issue
Block a user