sys/dev: further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using misidentified many licenses so this was mostly a manual - error
sys/dev: further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using misidentified many licenses so this was mostly a manual - errorprone - task.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier for automated tools to detect and summarize well knownopensource licenses. We are gradually adopting the specification, notingthat the tags are considered only advisory and do not, in any way,superceed or replace the license texts.
show more ...
APM was calling the suspend process from a timeout. This meant thatother timeouts could not happen while suspending, including timeoutsfor things like msleep. This caused the system to hang on su
APM was calling the suspend process from a timeout. This meant thatother timeouts could not happen while suspending, including timeoutsfor things like msleep. This caused the system to hang on suspendwhen the cbb was enabled, since its suspend path powered down thesocket which used a timeout to wait for it to be done.APM now creates a thread when it is enabled, and deletes the threadwhen it is disabled. This thread takes the place of the timeout bydoing its polling every ~.9s. When the thread is disabled, it willwakeup early, otherwise it times out and polls the varius things theold timeout polled (APM events, suspend delays, etc).This makes my Sony VAIO 505TS suspend/resume correctly when APM isenabled (ACPI is black listed on my 505TS).This will likely fix other problems with the suspend path wheredrivers would sleep with msleep and/or do other timeouts. Maybethere's some special case code that would use DELAY while suspendingand msleep otherwise that can be revisited and removed.This was also tested by glebius@, who pointed out that in the patch Isent him, I'd forgotten apm_saver.cMFC After: 3 weeks
No need to ifdef this pc98.
Catch up with recent events.
Use repo-copied files in sys/i386/bios.
Added dependency on the apm(4) module.
Remove __P.
Added necessary include for pc98.
Added PC-98 apm support.Submitted by: MURAMATSU Atsushi <[email protected]>
select() DKI is now in <sys/selinfo.h>.
Don't needlessly indirect the APM softstate. It does nothing butobfuscate the code.
Add the apm_saver syscons screen saver module.apm_saver uses the apm_display() routine from the apm system to"suspend" the "display" part of the machine.This is beneficial for some laptops (or o
Add the apm_saver syscons screen saver module.apm_saver uses the apm_display() routine from the apm system to"suspend" the "display" part of the machine.This is beneficial for some laptops (or other machines withnon-traditional displays) that choke on the 'green' saver'seffect.Another way of looking at this is that it's the same as a screensaver that does an 'apm -d 0' to blank the display and an 'apm -d 1'to bring it back. One probably ought to use these commands to makesure the effect will be correct before using it unattended.