kernel - Try to idle cpus when in panic()
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 5 Dec 2016 17:21:19 +0000 (09:21 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 5 Dec 2016 17:21:19 +0000 (09:21 -0800)
commit63cff0361caa40216fcb16f79855de833431274b
treede926b1200ce168bb925923457163f2b8a94ac35
parent8edfbc5ea8601645770484df0358fa4799ab68ef
kernel - Try to idle cpus when in panic()

* Try to use MONITOR/MWAIT to idle cpus while they are stopped in a panic(),
  instead of hard-looping.  This significantly reduces power consumption while
  in a paniced state and is particularly helpful on laptops.

Reported-by: tuxillo
sys/kern/lwkt_thread.c
sys/platform/pc64/x86_64/machdep.c
sys/sys/systm.h