kernel - Use atomic op for usched_global_cpumask
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 11 Oct 2012 06:43:03 +0000 (23:43 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 11 Oct 2012 06:43:03 +0000 (23:43 -0700)
commitcb31dff3c5e12b338b6832cfde4445d76ea2b317
tree4d118bcfaa2bfd989bd9a99b4dc4234952306b83
parent89f41b2856f546c55225c472fcad5cbfc932b5d5
kernel - Use atomic op for usched_global_cpumask

* Use atomic op for usched_global_cpumask in the cpu init code.  This
  code is serialized anyway, I think, but it is best to be safe.

* Add cpu_ccfence() to ensure that the compiler does not reorder the
  clearing of the mask in the cpusync code.
sys/kern/init_main.c
sys/kern/lwkt_ipiq.c