John Baldwin c903c5fbae Use devclass_get_count() instead of devclass_get_maxunit() to get the
correct number of acpi_thermalX devices.  Having this wrong caused the
acpi_thermal thread to realloc the array of devices on each loop iteration.

MFC after:	1 week
PR:		kern/118497
Submitted by:	Pasi Parviainen
2007-12-31 15:56:03 +00:00
..
2007-12-28 22:50:04 +00:00
2007-12-24 01:01:59 +00:00
2007-12-30 12:27:31 +00:00