kernel - close holes in autoconf's run_interrupt_driven_config_hooks()
commit7a4c2701e20cf58461dfa4d8b0e2df9322c20db7
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 30 Sep 2009 18:47:25 +0000 (30 11:47 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 30 Sep 2009 18:52:49 +0000 (30 11:52 -0700)
treed904c1b6931e5adfeab8f6e073bdfa0fc6865bc9
parent4dac9024e224cf231838887a54920825ec1c0d76
kernel - close holes in autoconf's run_interrupt_driven_config_hooks()

* Interlock with a ran_config_hooks static variable instead of 'cold'

* Get rid of list races which might occur due to hooks being removed
  while the hooks are being run.

* Use a finer 1-second sleep interval instead of a 10-second sleep.
sys/kern/subr_autoconf.c