Reprase r271616 comments.

Submitted by:	alc
MFC after:	1 month
This commit is contained in:
Alexander Motin 2014-09-17 17:43:32 +00:00
parent 066da8050b
commit ae9e9b4fda
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=271713

View File

@ -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();