[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CVS: cvs.openbsd.org: src



CVSROOT:	/cvs
Module name:	src
Changes by:	dlg_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org	2005/11/22 04:54:53

Modified files:
	sys/arch/i386/i386: esm.c 

Log message:
for every sensor esm looks after it has to talk to the hardware, which
means it could busy wait while the hardware gets ready. all the sensors
are updated out of a single timeout. doing this for the 30ish esm sensors
on my machine is probably not a good thing...

this changes the way updates are handled. instead of a single big update
for all the sensors, we now update only one sensor in a timeout. after
that sensor has been updated it sets up a very short timeout for the next
sensor to run out of. we also use the short timeouts to retry the same
sensor if the hardware isnt ready which means we avoid the (worst) busy
wait.



Visit your host, monkey.org