summaryrefslogtreecommitdiff
path: root/sys/dev/acpi/acpitz.c
AgeCommit message (Collapse)Author
2010-07-27replace acpitz_getreading goo with proper aml_evalinteger.Marco Peereboom
From jordan.
2010-07-21spacing and indents that are driving me crazyTheo de Raadt
2010-07-20print the temperature readings that make us go down; ok kettenisTheo de Raadt
2010-07-20tsleep() and EWOULDBLOCK was being used incorrectly for fixed minumumTheo de Raadt
delays. tsleep() on an unknown wait channel, to ensure the minimum is met, and that wakeup()'s don't make the delay get restarted over and over.. ok kettenis mlarkin
2010-01-13Make sure that acpitz is always the last one to replace the globalMarco Peereboom
cpu_setperf pointer so that it is always the first to be notified of any changes. This fixes the reported "creeping up" of performance level when using apmd and several overheating issues people reported. Tested by many, ok kettenis with a large XXX on it.
2009-12-09disable useles printMarco Peereboom
2009-12-04KNF whitespace, from Brad. ok jordan@Stuart Henderson
2009-10-15Implement passive cooling for acpitz; works for some overheating machinesJordan Hargrave
Counter in parent for disabling setperf when passive cooling enabled ok marco@
2009-04-26in ca_attach() there is no need to set .value and .flags of sensors to 0,Constantine A. Murenin
since autoconf(9) allocates softc with M_ZERO; ok deraadt
2009-04-19zero temperature in acpi refers to -273,2degC -- convert to uK ↵Constantine A. Murenin
appropriately; ok deraadt marco
2009-03-11More aml_evalinteger fixupJordan Hargrave
ok marco@
2008-09-12In acpitz_setfan(), try to send fan commands to ``power resources'' objects.Miod Vallat
Makes a few hp laptops run cooler and quieter.
2008-09-11Thermal Zone entities might not be direct object references, but namedMiod Vallat
references. Account for this, and the hp530 laptop won't spontaneously power down thinking internal temperature is over 500C. ok marco@
2008-06-01Re-enable new parser. Lots of testing by various folks. Fits all mediaMarco Peereboom
now too. ok kettenis deraadt
2008-05-16back out jordans new parser.David Gwynne
it didnt have enough oks from the right people, it did break machines that were previously working, and it bloated the RAMDISKS and install media beyond the constraints of the media. requested by deraadt@
2008-05-14Adding new ACPI Parser codeJordan Hargrave
Old guts of code still exists, needs to be torn out next ok marco@ ok brad@
2008-04-12Get rid of acpi_s5 global variables; simply send SIGUSR2 instead of SUGUSR1Mark Kettenis
to tell init(8) to power down the machine. ok krw@
2008-01-08Don't free res twice.Marco Peereboom
ok jordan
2008-01-06Add a more robust gettempreading that debounces the value (idea from FreeBSD)Marco Peereboom
Add a macro to convert from K to C Redo notify and sprinkle some debug Tested on D810 T60 & Q2010 and tested by several others.
2007-11-12a little less excitement (every printf does not need to end in !)Theo de Raadt
2007-11-03less colonsTheo de Raadt
2007-11-03repair attach messages; ok gwk canacarTheo de Raadt
2007-03-26Don't leak memory.Marco Peereboom
From giovanni <qgiovanni@gmail.com>
2007-03-22split userland & kernel struct sensor/sensordev so that the additionTheo de Raadt
of new fields in the future is less disruptive. This is done similar to how struct proc is handled for ps(1). ok jmc (man page changes) tested fkr simon, and more suggestions from millert
2007-02-14Quiet a noisy debug message by using dnprintf instead of printf.Deanna Phillips
ok marco
2006-12-26Add polling to devices that require it such as acpibat and acpitz.Marco Peereboom
Use the same tsleep/wakeup mechanism as the interrupt code to keep it non- concurrent.
2006-12-23adapt to new two-level sensor api; Constantine A. MureninTheo de Raadt
2006-12-21more minor knfTheo de Raadt
2006-12-19knf + delete unused variablesTheo de Raadt
2006-12-18Remove misleading NOTREACHED comments. Sending a signal does notCan Erkin Acar
stop execution. Noticed by deraadt@
2006-11-29After a long debate at the hackathon it was decided that the acpi implementationMarco Peereboom
is not concurrent if the sensors thread goes away. This makes acpi completly lockless. help and ok dlg
2006-11-02Ooops, forgot a debug printf.Marco Peereboom
2006-11-02Add active cooling support mostly by me with jordan help.Marco Peereboom
Add initial passive cooling trending formulas by jordan. ok jordan@
2006-10-24Condense get functions into a single function. This is ahead of retrievingMarco Peereboom
remaining threshold values. ok jordan
2006-10-24KNFMarco Peereboom
2006-10-19Fixed acpitz match functionJordan Hargrave
ok marco@
2006-10-12Massive ACPI changesJordan Hargrave
Fixed ACPI leaks new ACPI API ok marco@
2006-07-30Donot pass a uninitialized pointer to aml_register_notify(), should fix PR5153Gordon Willem Klok
awaiting confirmation of this from the submitter, but its wrong regardless. ok marco@, canacar@
2006-05-19Minimal thermal zone driver. Monitors thermal zone temperature,Can Erkin Acar
shuts down the system if the 'critical temperature' is reached. ok marco@