CVS commit: src/sys/dev/sysmon

2010-02-05 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Fri Feb  5 19:22:25 UTC 2010

Modified Files:
src/sys/dev/sysmon: sysmon_envsys_events.c

Log Message:
Fix a typo in one DPRINTF (s/edata->des/edata->desc/).


To generate a diff of this commit:
cvs rdiff -u -r1.78 -r1.79 src/sys/dev/sysmon/sysmon_envsys_events.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/acpi

2010-02-01 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Mon Feb  1 09:45:05 UTC 2010

Modified Files:
src/sys/dev/acpi: acpi_tz.c

Log Message:
Fix incorrect notify handler type (ACPI_SYSTEM_NOTIFY -> ACPI_DEVICE_NOTIFY).


To generate a diff of this commit:
cvs rdiff -u -r1.56 -r1.57 src/sys/dev/acpi/acpi_tz.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man9

2010-01-31 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Jan 31 21:21:13 UTC 2010

Modified Files:
src/share/man/man9: driver.9

Log Message:
Do not advertise deprecated APIs in an important introductory manual page.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/share/man/man9/driver.9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/acpi

2010-01-31 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Jan 31 20:38:11 UTC 2010

Modified Files:
src/sys/dev/acpi: wmi_acpi.c

Log Message:
Verify the object type before using variables from it.
In addition, use CTASSERT(9) instead of KASSERT(9).


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/dev/acpi/wmi_acpi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/acpi

2010-01-31 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Jan 31 19:49:29 UTC 2010

Modified Files:
src/sys/dev/acpi: dalb_acpi.c

Log Message:
Add a detachment routine.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/dev/acpi/dalb_acpi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/acpi

2010-01-31 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Jan 31 18:51:33 UTC 2010

Modified Files:
src/sys/dev/acpi: asus_acpi.c

Log Message:
Also remove the ACPI notify handler upon detach.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/dev/acpi/asus_acpi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/acpi

2010-01-31 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Jan 31 17:53:31 UTC 2010

Modified Files:
src/sys/dev/acpi: thinkpad_acpi.c

Log Message:
Add a detachment routine. While here, clarify the initialization of sensors.


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/sys/dev/acpi/thinkpad_acpi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/conf

2010-01-31 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Jan 31 12:20:23 UTC 2010

Modified Files:
src/sys/arch/amd64/conf: GENERIC

Log Message:
Remove ACPICA_PEDANTIC.


To generate a diff of this commit:
cvs rdiff -u -r1.262 -r1.263 src/sys/arch/amd64/conf/GENERIC

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/i386/conf

2010-01-31 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Jan 31 12:14:45 UTC 2010

Modified Files:
src/sys/arch/i386/conf: ALL GENERIC

Log Message:
Remove ACPICA_PEDANTIC. Appears to be no longer in use.


To generate a diff of this commit:
cvs rdiff -u -r1.230 -r1.231 src/sys/arch/i386/conf/ALL
cvs rdiff -u -r1.961 -r1.962 src/sys/arch/i386/conf/GENERIC

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man4

2010-01-31 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Jan 31 12:07:38 UTC 2010

Modified Files:
src/share/man/man4: acpi.4

Log Message:
Miscellaneous small changes:

* Use -compact to make the page a little shorter.
* Capitalize the title in the sysctl-section.
* Use .Ic for the sysctl variables.
* Remove ACPI_PEDANTIC; no such option any more.


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/share/man/man4/acpi.4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man4

2010-01-31 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Jan 31 11:29:32 UTC 2010

Modified Files:
src/share/man/man4: acpi.4

Log Message:
Add a short introduction to ACPI debugging.


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/share/man/man4/acpi.4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/acpi

2010-01-31 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Jan 31 11:26:20 UTC 2010

Modified Files:
src/sys/dev/acpi: acpi.c acpivar.h files.acpi
Added Files:
src/sys/dev/acpi: acpi_debug.c

Log Message:
Add dynamic debug options for ACPI_DEBUG kernels.

ok jmcneill@, pooka@, pgoyette@


To generate a diff of this commit:
cvs rdiff -u -r1.147 -r1.148 src/sys/dev/acpi/acpi.c
cvs rdiff -u -r0 -r1.1 src/sys/dev/acpi/acpi_debug.c
cvs rdiff -u -r1.39 -r1.40 src/sys/dev/acpi/acpivar.h
cvs rdiff -u -r1.64 -r1.65 src/sys/dev/acpi/files.acpi

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/i386/conf

2010-01-31 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Jan 31 11:19:40 UTC 2010

Modified Files:
src/sys/arch/i386/conf: ALL

Log Message:
No more ACPI_ACAD_DEBUG.


To generate a diff of this commit:
cvs rdiff -u -r1.229 -r1.230 src/sys/arch/i386/conf/ALL

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/acpi

2010-01-31 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Jan 31 11:16:18 UTC 2010

Modified Files:
src/sys/dev/acpi: acpi_acad.c

Log Message:
Simplify and clean:

* Semantics.
* Remove ACPI_ACAD_DEBUG.
* Reduce the amount of error reporting.
* Remove the internal bookkeeping flags and variables;
  instead operate only with a single state variable.
* Trust that the notify handler is doing its job;
  remove the refresh routine from the sensor.
* Queue a status check upon resume; we want to know
  if the status has changed when in suspend (and it
  is unclear if a notify is sent to us).


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/sys/dev/acpi/acpi_acad.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/acpi

2010-01-30 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Jan 31 07:34:10 UTC 2010

Modified Files:
src/sys/dev/acpi: acpi_acad.c

Log Message:
Add detachment routine.


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/sys/dev/acpi/acpi_acad.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/acpi

2010-01-30 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Jan 31 06:45:10 UTC 2010

Modified Files:
src/sys/dev/acpi: acpi_bat.c

Log Message:
Allocate the sensor structures dynamically.


To generate a diff of this commit:
cvs rdiff -u -r1.80 -r1.81 src/sys/dev/acpi/acpi_bat.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/acpi

2010-01-30 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Jan 31 06:10:53 UTC 2010

Modified Files:
src/sys/dev/acpi: acpi_bat.c acpi_button.c

Log Message:
Add detachment routines.


To generate a diff of this commit:
cvs rdiff -u -r1.79 -r1.80 src/sys/dev/acpi/acpi_bat.c
cvs rdiff -u -r1.29 -r1.30 src/sys/dev/acpi/acpi_button.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/acpi

2010-01-30 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sat Jan 30 18:35:49 UTC 2010

Modified Files:
src/sys/dev/acpi: acpi_button.c acpi_lid.c hpqlb_acpi.c spic_acpi.c
thinkpad_acpi.c

Log Message:
Add the _COMPONENT definition for ACPI_DEBUG.


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sys/dev/acpi/acpi_button.c
cvs rdiff -u -r1.31 -r1.32 src/sys/dev/acpi/acpi_lid.c
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/acpi/hpqlb_acpi.c \
src/sys/dev/acpi/spic_acpi.c
cvs rdiff -u -r1.23 -r1.24 src/sys/dev/acpi/thinkpad_acpi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/acpi

2010-01-30 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sat Jan 30 18:07:06 UTC 2010

Modified Files:
src/sys/dev/acpi: acpi_acad.c

Log Message:
Add the _COMPONENT definition for ACPI_DEBUG.


To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 src/sys/dev/acpi/acpi_acad.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/acpi

2010-01-29 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Fri Jan 29 12:22:00 UTC 2010

Modified Files:
src/sys/dev/acpi: asus_acpi.c

Log Message:
If we failed to obtain the brightness level during suspend, do not try to
restore it with a possible garbage value during resume.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/dev/acpi/asus_acpi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/acpi

2010-01-29 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Fri Jan 29 11:57:37 UTC 2010

Modified Files:
src/sys/dev/acpi: asus_acpi.c

Log Message:
Replace all AcpiEvaluateObject() calls with acpi_eval_set_integer().

(As the return buffers are not used for anything, no need to make
unnecessary temporary allocations.)

Compile tested only.

ok jmcneill@


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/dev/acpi/asus_acpi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man9

2010-01-29 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Fri Jan 29 11:24:31 UTC 2010

Modified Files:
src/share/man/man9: sysmon_pswitch.9

Log Message:
Add couple instances of .Pp.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/share/man/man9/sysmon_pswitch.9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/acpi

2010-01-29 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Fri Jan 29 11:23:25 UTC 2010

Modified Files:
src/sys/dev/acpi: asus_acpi.c

Log Message:
Fix a memory leak in the resume handler.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/dev/acpi/asus_acpi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Re: CVS commit: src/usr.sbin/powerd

2010-01-26 Thread Jukka Ruohonen
On Tue, Jan 26, 2010 at 02:38:45PM -0800, Jason Thorpe wrote:
> This is incorrect.  apm vs. acpi vs. whatever else.. the code still has
> support for them.  Please put this back.  Just because apm-specific and
> acpi-specific scripts do not yet exist doesn't mean that the code does not
> support them.

One more issue to consider: is there anything in these scripts that justify
the use of machine or power backend dependent subdirectories? I think all of
the scripts are (or at least should be) very generic that should run fine
regardless of the machine or power backend.

- Jukka.


Re: CVS commit: src/usr.sbin/powerd

2010-01-26 Thread Jukka Ruohonen
On Tue, Jan 26, 2010 at 02:41:52PM -0800, Jason Thorpe wrote:
> if (ioctl(fd, POWER_IOC_GET_TYPE, &power_type) == -1) {
> syslog(LOG_ERR, "POWER_IOC_GET_TYPE: %m");
> exit(EX_OSERR);
> }
> 
> (void)asprintf(&cp, "%s/%s", _PATH_POWERD_SCRIPTS,
> power_type.power_type);
> if (cp == NULL) {
> syslog(LOG_ERR, "allocating script path: %m");
> exit(EX_OSERR);
> }
> script_paths[0] = cp;

Okay, I stand corrected.

However, the "power_type" from POWER_IOC_GET_TYPE can currently only be
"acpi" and "landisk" (...). No "apm" is being set anywhere in the tree via
sysmon_power_settype().

- Jukka.


Re: CVS commit: src/usr.sbin/powerd

2010-01-26 Thread Jukka Ruohonen
On Tue, Jan 26, 2010 at 02:38:45PM -0800, Jason Thorpe wrote:
> 
> On Jan 26, 2010, at 12:37 PM, Jukka Ruohonen wrote:
> 
> > * Apparently there is only a single location for the scripts. Thus, remove
> >   the references to "/etc/powerd/scripts/apm" and 
> > "/etc/powerd/scripts/acpi".
> 
> This is incorrect.  apm vs. acpi vs. whatever else.. the code still has 
> support for them.  Please put this back.  Just because apm-specific and 
> acpi-specific scripts do not yet exist doesn't mean that the code does not 
> support them.

I can put it back. But as has been pointed out, does it need to be there to
confuse users when neither (a) the directories exist in the default install
nor (b) does support for this exist in the code?

- Jukka.


CVS commit: src/share/man/man9

2010-01-26 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Tue Jan 26 22:35:11 UTC 2010

Modified Files:
src/share/man/man9: pmf.9

Log Message:
Revert previous.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/share/man/man9/pmf.9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man9

2010-01-26 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Tue Jan 26 21:50:57 UTC 2010

Modified Files:
src/share/man/man9: pmf.9

Log Message:
Give it a single name; it is sufficient to list the functions in the SYNOPSIS.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/share/man/man9/pmf.9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man9

2010-01-26 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Tue Jan 26 21:40:34 UTC 2010

Modified Files:
src/share/man/man9: fileassoc.9

Log Message:
Capitalize one more title. Use a complete sentence in CODE REFERENCES.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/share/man/man9/fileassoc.9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man9

2010-01-26 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Tue Jan 26 21:37:02 UTC 2010

Modified Files:
src/share/man/man9: fileassoc.9

Log Message:
Move the complete prototypes to the SYNOPSIS. Also capitalize the titles.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/share/man/man9/fileassoc.9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/powerd

2010-01-26 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Tue Jan 26 20:37:13 UTC 2010

Modified Files:
src/usr.sbin/powerd: powerd.8

Log Message:
Some miscellaneous fixes:

 * Apparently there is only a single location for the scripts. Thus, remove
   the references to "/etc/powerd/scripts/apm" and "/etc/powerd/scripts/acpi".
 * Correct confusion: instead of "the device with which the device is
   associated", write "the device with which the event is associated".
   Correct also an example related to this.
 * Improve wording, grammar, and markup in few places.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/usr.sbin/powerd/powerd.8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/powerd

2010-01-26 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Tue Jan 26 14:28:23 UTC 2010

Modified Files:
src/usr.sbin/powerd: powerd.8

Log Message:
Emphasize the script names and events.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/usr.sbin/powerd/powerd.8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/distrib/sets/lists/comp

2010-01-26 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Tue Jan 26 14:06:36 UTC 2010

Modified Files:
src/distrib/sets/lists/comp: mi

Log Message:
Add sysmon_pswitch(9).


To generate a diff of this commit:
cvs rdiff -u -r1.1377 -r1.1378 src/distrib/sets/lists/comp/mi

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man9

2010-01-26 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Tue Jan 26 14:00:38 UTC 2010

Modified Files:
src/share/man/man9: Makefile
Added Files:
src/share/man/man9: sysmon_pswitch.9

Log Message:
Document also the sysmon power switches; sysmon_pswitch(9).


To generate a diff of this commit:
cvs rdiff -u -r1.312 -r1.313 src/share/man/man9/Makefile
cvs rdiff -u -r0 -r1.1 src/share/man/man9/sysmon_pswitch.9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man9

2010-01-26 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Tue Jan 26 08:48:39 UTC 2010

Modified Files:
src/share/man/man9: sysmon_taskq.9

Log Message:
Mention that all tasks are executed before the halt.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/share/man/man9/sysmon_taskq.9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/distrib/sets/lists/comp

2010-01-26 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Tue Jan 26 08:30:21 UTC 2010

Modified Files:
src/distrib/sets/lists/comp: mi

Log Message:
Include all references from sysmon_taskq(9).


To generate a diff of this commit:
cvs rdiff -u -r1.1376 -r1.1377 src/distrib/sets/lists/comp/mi

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man9

2010-01-26 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Tue Jan 26 08:14:09 UTC 2010

Modified Files:
src/share/man/man9: Makefile

Log Message:
Build links for rest of the sysmon_taskq(9) functions.


To generate a diff of this commit:
cvs rdiff -u -r1.311 -r1.312 src/share/man/man9/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man9

2010-01-25 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Tue Jan 26 07:58:16 UTC 2010

Modified Files:
src/share/man/man9: sysmon_taskq.9

Log Message:
Clarify that sysmon_task_queue_init() should be called from arch-specific
routine.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/share/man/man9/sysmon_taskq.9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man9

2010-01-25 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Tue Jan 26 07:53:25 UTC 2010

Modified Files:
src/share/man/man9: sysmon_taskq.9

Log Message:
Document also rest of the functions.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/share/man/man9/sysmon_taskq.9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man9

2010-01-25 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Tue Jan 26 07:12:06 UTC 2010

Modified Files:
src/share/man/man9: sysmon_taskq.9

Log Message:
Instead of "general purpose task queue", call it "general purpose system
monitoring task queue". Also include a paragraph about the intended usage.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/share/man/man9/sysmon_taskq.9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Re: CVS commit: src/share/man/man9

2010-01-25 Thread Jukka Ruohonen
On Mon, Jan 25, 2010 at 12:54:45PM -0800, Paul Goyette wrote:
> This routine is really targetted specifically for use by the 
> sysmon_envsys(8) facility.  This man page seems to imply that it's 
> available for general-purpose use.

Well, the sysmon-part is in the name so... :)

While it is targeted for sysmon_envsys(8), the most important task for it on
x86 is to schedule all ACPI notifys, including interrupts, via the
AcpiOsExecute (see sys/dev/acpi/acpica/OsdSchedule.c). I would presume that
this was also the reason why it was originally written.

The other places where it is currently used:

* sys/arch/arm/xscale/becc_button.c
* sys/arch/evbarm/hdl_g/btn_obio.c
* sys/arch/evbarm/nslu2/nslu2_buttons.c
* sys/arch/hp700/dev/power.c
* sys/arch/landisk/dev/btn_obio.c
* sys/arch/landisk/dev/pwrsw_obio.c
* sys/arch/mips/atheros/dev/argpio.c
* sys/arch/sgimips/hpc/panel.c
* sys/arch/sparc/dev/tctrl.c
* sys/arch/sparc64/dev/psycho.c
* sys/arch/x68k/dev/pow.c
* sys/dev/adb/adb_kbd.c
* sys/arch/arm/xscale/becc_button.c

... and probably others.

This makes it pretty "general" to me.

> If we're going to treat it as a general-purpose routine, we should rename 
> and move the files (kern/kern_taskq.[ch] maybe?).  Otherwise, I'd prefer to 
> make this man page more specific to sysmon, and perhaps
> add an example of where it is currently used.

Due to the wide usage listed above, I don't think renaming is worth the
cause. A word or two about the context (sysmon, power, something) wouldn't
do harm though.

> Also, there is some semantics in the current implementation where all the 
> tasks in the queue are run before checking the condvar;  this might not 
> necessarily be appropriate for a general-purpose taskq.
> 
>   /*
>* Run through all the tasks before we check for the exit
>* condition; it's probably more important to actually run
>* all the tasks before we exit.
>*/

This could be mentioned sure.

- Jukka.


CVS commit: src/share/man/man9

2010-01-25 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Mon Jan 25 20:09:15 UTC 2010

Modified Files:
src/share/man/man9: ethersubr.9

Log Message:
Improve wording.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/share/man/man9/ethersubr.9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man9

2010-01-25 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Mon Jan 25 19:58:46 UTC 2010

Modified Files:
src/share/man/man9: ethersubr.9

Log Message:
Add the names of the parameters to the section describing the functions.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/share/man/man9/ethersubr.9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man9

2010-01-25 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Mon Jan 25 19:34:37 UTC 2010

Modified Files:
src/share/man/man9: dmover.9

Log Message:
Do not list complete prototypes in the sections describing the functions.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/share/man/man9/dmover.9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man9

2010-01-25 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Mon Jan 25 18:25:08 UTC 2010

Modified Files:
src/share/man/man9: sysmon_taskq.9

Log Message:
Add a RETURN VALUES section.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/share/man/man9/sysmon_taskq.9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man9

2010-01-25 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Mon Jan 25 17:27:41 UTC 2010

Modified Files:
src/share/man/man9: mutex.9

Log Message:
Remove two consecutive commas in the SEE ALSO section.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/share/man/man9/mutex.9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man4

2010-01-25 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Mon Jan 25 17:21:33 UTC 2010

Modified Files:
src/share/man/man4: acpi.4

Log Message:
Add the paper/presentation of Joerg and Jared to the list of references.

(Probably better reading than any of the specifications, with also some
historical value to NetBSD.)


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/share/man/man4/acpi.4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/distrib/sets/lists/comp

2010-01-25 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Mon Jan 25 16:17:10 UTC 2010

Modified Files:
src/distrib/sets/lists/comp: mi

Log Message:
Add sysmon_taskq(9).


To generate a diff of this commit:
cvs rdiff -u -r1.1375 -r1.1376 src/distrib/sets/lists/comp/mi

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man9

2010-01-25 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Mon Jan 25 16:16:34 UTC 2010

Modified Files:
src/share/man/man9: Makefile
Added Files:
src/share/man/man9: sysmon_taskq.9

Log Message:
Add a simple manual page for the simple sysmon task queue.

ok wiz@


To generate a diff of this commit:
cvs rdiff -u -r1.310 -r1.311 src/share/man/man9/Makefile
cvs rdiff -u -r0 -r1.1 src/share/man/man9/sysmon_taskq.9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man4

2010-01-25 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Mon Jan 25 11:41:10 UTC 2010

Modified Files:
src/share/man/man4: acpi.4

Log Message:
Add some missing devices.


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/share/man/man4/acpi.4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man4

2010-01-25 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Mon Jan 25 11:02:56 UTC 2010

Modified Files:
src/share/man/man4: acpi.4

Log Message:
Be more pedantic with the references; list also authors, dates, revisions,
and titles.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/share/man/man4/acpi.4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man4

2010-01-25 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Mon Jan 25 10:12:41 UTC 2010

Modified Files:
src/share/man/man4: acpidalb.4

Log Message:
Recommit:
* add verbosity to the PNP0C32 reference
* use more markup
* improve wording


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/share/man/man4/acpidalb.4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man4

2010-01-25 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Mon Jan 25 10:05:15 UTC 2010

Modified Files:
src/share/man/man4: acpidalb.4

Log Message:
Revert an accidental commit.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/share/man/man4/acpidalb.4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man4

2010-01-25 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Mon Jan 25 09:33:29 UTC 2010

Modified Files:
src/share/man/man4: acpidalb.4


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/share/man/man4/acpidalb.4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/distrib/sets/lists/comp

2010-01-24 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Mon Jan 25 07:57:05 UTC 2010

Modified Files:
src/distrib/sets/lists/comp: mi

Log Message:
Add CTASSERT(9).


To generate a diff of this commit:
cvs rdiff -u -r1.1374 -r1.1375 src/distrib/sets/lists/comp/mi

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man9

2010-01-24 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Mon Jan 25 07:51:17 UTC 2010

Modified Files:
src/share/man/man9: Makefile
Added Files:
src/share/man/man9: CTASSERT.9

Log Message:
Add CTASSERT(9). From FreeBSD.

ok @wiz


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/share/man/man9/CTASSERT.9
cvs rdiff -u -r1.309 -r1.310 src/share/man/man9/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/distrib/sets/lists/comp

2010-01-24 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Jan 24 21:06:55 UTC 2010

Modified Files:
src/distrib/sets/lists/comp: mi

Log Message:
Add timeradd(3).


To generate a diff of this commit:
cvs rdiff -u -r1.1372 -r1.1373 src/distrib/sets/lists/comp/mi

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2010-01-24 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Jan 24 21:05:45 UTC 2010

Modified Files:
src/share/man/man3: Makefile

Log Message:
Add timeradd(3).


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/share/man/man3/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man9

2010-01-24 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Jan 24 14:14:55 UTC 2010

Modified Files:
src/share/man/man9: firmload.9

Log Message:
Provide a FUNCTIONS section and remove the types from the functions therein.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/share/man/man9/firmload.9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2010-01-24 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Jan 24 12:58:37 UTC 2010

Modified Files:
src/share/man/man3: timeradd.3

Log Message:
Add the missing $Id$ tag.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/share/man/man3/timeradd.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Re: CVS commit: src/share/man/man3

2010-01-24 Thread Jukka Ruohonen
On Sun, Jan 24, 2010 at 11:14:04AM +, Jukka Ruohonen wrote:
> Log Message:
> Add timeradd(3) from FreeBSD. Needs proofreading.

The $Id$ field is not present in this file. How it should be added?

Actually, it is a little unclear to me should one always include a template
$Id$ for new files, and what kind? I tried to skim through the CVS
introduction, but it did not speak about the $Id$ expansion.

- Jukka.


CVS commit: src/sys/dev/acpi

2010-01-24 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Jan 24 11:32:13 UTC 2010

Modified Files:
src/sys/dev/acpi: acpi_bat.c

Log Message:
  * Reintroduce a state variable. From nj...@.
  * Always mark the charge state sensor as valid.


To generate a diff of this commit:
cvs rdiff -u -r1.77 -r1.78 src/sys/dev/acpi/acpi_bat.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2010-01-24 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Jan 24 11:14:04 UTC 2010

Added Files:
src/share/man/man3: timeradd.3

Log Message:
Add timeradd(3) from FreeBSD. Needs proofreading.

ok wiz@


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/share/man/man3/timeradd.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/i386/conf

2010-01-23 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sat Jan 23 15:40:14 UTC 2010

Modified Files:
src/sys/arch/i386/conf: ALL

Log Message:
ACPI_BAT_DEBUG is no more.


To generate a diff of this commit:
cvs rdiff -u -r1.228 -r1.229 src/sys/arch/i386/conf/ALL

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/acpi

2010-01-23 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sat Jan 23 15:06:47 UTC 2010

Modified Files:
src/sys/dev/acpi: acpi_bat.c

Log Message:
Cleanup:

  * Remove ACPI_BAT_DEBUG.
  * Reduce the amount of error reporting.
  * Remove the internal bookkeeping flags.
  * Remove the debugging functions used to print status and information
changes. This information is fully conveyed in the output of envstat(8).
  * Always evaluate _STA. If it fails or the battery is not present, mark
all remaining sensors as invalid. This will eliminate the convoluted
update routine.
  * Semantics.

Over 200 LOC was eliminated, but functional change should again be minimal.

ok jmcneill@, pgoyette@


To generate a diff of this commit:
cvs rdiff -u -r1.76 -r1.77 src/sys/dev/acpi/acpi_bat.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/acpi

2010-01-23 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sat Jan 23 13:32:45 UTC 2010

Modified Files:
src/sys/dev/acpi: wmi_acpi.c

Log Message:
Correct the type also in the WMI write method.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/dev/acpi/wmi_acpi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/acpi

2010-01-23 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sat Jan 23 12:48:19 UTC 2010

Modified Files:
src/sys/dev/acpi: wmi_acpi.c

Log Message:
* Fix the type of the input buffer in the WMI method call.
* Do not error out if the flags field is is 0x00. Observed by ceg...@.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/dev/acpi/wmi_acpi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/acpi

2010-01-21 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Thu Jan 21 08:57:17 UTC 2010

Modified Files:
src/sys/dev/acpi: acpi_bat.c

Log Message:
In preparation for upcoming changes:

  * Provide proper definitions and use these.
  * Clarify the evaluation of _STA.
  * Mark the state of a sensor according to the return value from _STA.
  * Share the basic object evaluation in _BIF and _BST.
  * Verify the object types before using the objects.
  * Be aware of bogus values from _BIF and _BST, as noted in the specifcation.

Despite of the list, functional change should be minimal. Ok pgoye...@.


To generate a diff of this commit:
cvs rdiff -u -r1.75 -r1.76 src/sys/dev/acpi/acpi_bat.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/acpi

2010-01-18 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Mon Jan 18 18:49:28 UTC 2010

Modified Files:
src/sys/dev/acpi: acpi.c

Log Message:
Fix and improve several comments.


To generate a diff of this commit:
cvs rdiff -u -r1.146 -r1.147 src/sys/dev/acpi/acpi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/acpi

2010-01-18 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Mon Jan 18 18:36:50 UTC 2010

Modified Files:
src/sys/dev/acpi: acpi_ec.c acpi_powerres.c acpi_tz.c

Log Message:
Use acpi_eval_reference_handle() to simplify code. No functional change.

ok jmcneill@, pgoyette@


To generate a diff of this commit:
cvs rdiff -u -r1.58 -r1.59 src/sys/dev/acpi/acpi_ec.c
cvs rdiff -u -r1.8 -r1.9 src/sys/dev/acpi/acpi_powerres.c
cvs rdiff -u -r1.55 -r1.56 src/sys/dev/acpi/acpi_tz.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/acpi

2010-01-18 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Mon Jan 18 18:06:31 UTC 2010

Modified Files:
src/sys/dev/acpi: acpi.c acpivar.h

Log Message:
Introduce acpi_eval_reference_handle() --

an utility function to evaluate reference handles from package elements.

ok jmcneill@, pgoyette@


To generate a diff of this commit:
cvs rdiff -u -r1.145 -r1.146 src/sys/dev/acpi/acpi.c
cvs rdiff -u -r1.38 -r1.39 src/sys/dev/acpi/acpivar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/acpi

2010-01-18 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Mon Jan 18 17:34:37 UTC 2010

Modified Files:
src/sys/dev/acpi: acpi.c

Log Message:
Ensure that the return string is NUL-terminated in acpi_eval_string().

ok jmcneill@, pgoyette@


To generate a diff of this commit:
cvs rdiff -u -r1.144 -r1.145 src/sys/dev/acpi/acpi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/acpi

2010-01-18 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Mon Jan 18 17:11:00 UTC 2010

Modified Files:
src/sys/dev/acpi: thinkpad_acpi.c

Log Message:
Add definitions for volume keys.

ok jmcneill@


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/dev/acpi/thinkpad_acpi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/acpi

2010-01-18 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Mon Jan 18 17:09:17 UTC 2010

Modified Files:
src/sys/dev/acpi: acpi_tz.c

Log Message:
Fix a minor bug where a reference handle is used for error reporting even
though it may not be present. While here, convert few lines to aprint_*().

ok pgoyette@


To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 src/sys/dev/acpi/acpi_tz.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/acpi

2010-01-18 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Mon Jan 18 16:50:08 UTC 2010

Modified Files:
src/sys/dev/acpi: acpidevs_data.h

Log Message:
regen.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/dev/acpi/acpidevs_data.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/acpi

2010-01-18 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Mon Jan 18 16:34:47 UTC 2010

Modified Files:
src/sys/dev/acpi: acpidevs

Log Message:
Add some ACPI 4.0 devices.

ok jmcneill@, pgoyette@


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/dev/acpi/acpidevs

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/acpi

2010-01-12 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Tue Jan 12 12:21:04 UTC 2010

Modified Files:
src/sys/dev/acpi: acpi.c

Log Message:
Properly evaluate the _PRW object in case we have a package inside a
package.

ok jmcneill@


To generate a diff of this commit:
cvs rdiff -u -r1.143 -r1.144 src/sys/dev/acpi/acpi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/acpi

2010-01-09 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sat Jan  9 15:43:12 UTC 2010

Modified Files:
src/sys/dev/acpi: acpi.c

Log Message:
Add "ACPI fans" to the list of ignored HIDs, as discussed on port-i...@.


To generate a diff of this commit:
cvs rdiff -u -r1.142 -r1.143 src/sys/dev/acpi/acpi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/acpi

2010-01-09 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sat Jan  9 15:34:59 UTC 2010

Modified Files:
src/sys/dev/acpi: wmi_acpi.c

Log Message:
Fix the casts in the event handler.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/dev/acpi/wmi_acpi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/x86/x86

2010-01-05 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Tue Jan  5 17:23:18 UTC 2010

Modified Files:
src/sys/arch/x86/x86: mpacpi.c

Log Message:
Put back the evaluation of the return value from mpacpi_get_bbn().

Break reported by nj...@. Thanks!


To generate a diff of this commit:
cvs rdiff -u -r1.82 -r1.83 src/sys/arch/x86/x86/mpacpi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch

2010-01-05 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Tue Jan  5 13:57:18 UTC 2010

Modified Files:
src/sys/arch/i386/acpi: vald_acpi.c
src/sys/arch/x86/x86: mpacpi.c

Log Message:
Use acpi_eval_set_integer() to simplify code. No functional change intended.

ok pgoyette@, jmcneill@


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/sys/arch/i386/acpi/vald_acpi.c
cvs rdiff -u -r1.81 -r1.82 src/sys/arch/x86/x86/mpacpi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/acpi

2010-01-05 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Tue Jan  5 13:47:52 UTC 2010

Modified Files:
src/sys/dev/acpi: acpi_tz.c

Log Message:
Fix a memory leak/corruption by commenting out the evaluation of the _PSL
control method. If it is needed in the future, the output buffer must be
freed after use.

ok pgoyette@, jmcneill@


To generate a diff of this commit:
cvs rdiff -u -r1.53 -r1.54 src/sys/dev/acpi/acpi_tz.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/acpi

2010-01-05 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Tue Jan  5 13:39:49 UTC 2010

Modified Files:
src/sys/dev/acpi: acpi.c acpi_powerres.c dalb_acpi.c

Log Message:
Use acpi_eval_struct() to simplify code.

ok pgoyette@, jmcneill@


To generate a diff of this commit:
cvs rdiff -u -r1.139 -r1.140 src/sys/dev/acpi/acpi.c
cvs rdiff -u -r1.7 -r1.8 src/sys/dev/acpi/acpi_powerres.c
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/acpi/dalb_acpi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/x86/x86

2010-01-05 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Tue Jan  5 13:32:49 UTC 2010

Modified Files:
src/sys/arch/x86/x86: mpacpi.c

Log Message:
Fix several possible memory leaks in mpacpi_derive_bus().

ok pgoyette@, jmcneill@


To generate a diff of this commit:
cvs rdiff -u -r1.80 -r1.81 src/sys/arch/x86/x86/mpacpi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/acpi

2010-01-04 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Mon Jan  4 10:06:53 UTC 2010

Modified Files:
src/sys/dev/acpi: wmi_acpi.c wmi_acpivar.h

Log Message:
Update the copyright.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/dev/acpi/wmi_acpi.c
cvs rdiff -u -r1.5 -r1.6 src/sys/dev/acpi/wmi_acpivar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/acpi

2010-01-04 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Mon Jan  4 09:43:30 UTC 2010

Modified Files:
src/sys/dev/acpi: wmi_acpi.c wmi_acpivar.h

Log Message:
Two bug fixes:

- Use ACPI_ALL_NOTIFY instead of ACPI_DEVICE_NOTIFY.

- Fix the data query method: this fails without input.

ok pgoyette@


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/dev/acpi/wmi_acpi.c
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/acpi/wmi_acpivar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/acpi

2010-01-04 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Mon Jan  4 09:34:47 UTC 2010

Modified Files:
src/sys/dev/acpi: wmi_acpi.c wmi_acpivar.h

Log Message:
Cleanup:

- Provide the module declaration and use ACPI_FREE
  as well as ACPI_ALLOCATE_LOCAL_BUFFER for ACPI_DEBUG.

- Maintain the calling conventions of existing ACPI utility
  functions by initializing the output buffer for the caller
  in all applicable functions.

- Remove superfluous const correctness. Additional semantics:
  u_char -> char, u_int16_t -> uint16_t, and u_int64_t -> uint64_t.

- Collect the validation of input parameters to a single function.

ok pgoyette@


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/acpi/wmi_acpi.c
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/acpi/wmi_acpivar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/acpi

2010-01-03 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Jan  3 17:53:15 UTC 2010

Modified Files:
src/sys/dev/acpi: files.acpi wmi_acpi.c wmi_acpivar.h

Log Message:
Introduce acpiwmibus, a pseudo-bus to which the child WMI devices attach.

Multiple WMI mapper devices are supported, but each one can have only one
child device.

All exposed functions now require the parent mapper device as a parameter.

ok pgoyette@, jmcneill@


To generate a diff of this commit:
cvs rdiff -u -r1.63 -r1.64 src/sys/dev/acpi/files.acpi
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/acpi/wmi_acpi.c
cvs rdiff -u -r1.2 -r1.3 src/sys/dev/acpi/wmi_acpivar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/acpi

2009-12-31 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Thu Dec 31 10:12:51 UTC 2009

Modified Files:
src/sys/dev/acpi: acpi_lid.c

Log Message:
As the _PSW control method was deprecated in ACPI 3.0, augment the wake
event call with the newer _DSW control method.

ok pgoyette@, jmcneill@


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/sys/dev/acpi/acpi_lid.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/acpi

2009-12-31 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Thu Dec 31 10:07:13 UTC 2009

Modified Files:
src/sys/dev/acpi: acpi.c

Log Message:
Remove unused locking variables.

ok pgoyette@, jmcneill@


To generate a diff of this commit:
cvs rdiff -u -r1.138 -r1.139 src/sys/dev/acpi/acpi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/acpi

2009-12-31 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Thu Dec 31 10:02:51 UTC 2009

Modified Files:
src/sys/dev/acpi: acpi.c

Log Message:
Add Intel HW Random Number Generator to the list of ignored HIDs.

ok pgoyette@, jmcneill@


To generate a diff of this commit:
cvs rdiff -u -r1.137 -r1.138 src/sys/dev/acpi/acpi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



<    1   2   3   4   5