diff options
author | mdf <mdf@FreeBSD.org> | 2011-04-19 20:44:43 +0000 |
---|---|---|
committer | mdf <mdf@FreeBSD.org> | 2011-04-19 20:44:43 +0000 |
commit | 7efed93e849474181f51837b9e87d34f12fbf911 (patch) | |
tree | 5f84ee4462f0a03ab47714e943c4e4329ef51096 /sys/dev/acpica | |
parent | edb0bf8d55b99a36b0a118109b02a87a8cacd949 (diff) | |
download | FreeBSD-src-7efed93e849474181f51837b9e87d34f12fbf911.zip FreeBSD-src-7efed93e849474181f51837b9e87d34f12fbf911.tar.gz |
Correctly output the entire array for hw.acpi.thermal._ACx.
Reported by: Taku YAMAMOTO < taku AT tackymt DOT homeip DOT net >
Tested by: Nick Ulen < uncle AT wolfman DOT devio DOT us >
Diffstat (limited to 'sys/dev/acpica')
-rw-r--r-- | sys/dev/acpica/acpi_thermal.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/acpica/acpi_thermal.c b/sys/dev/acpica/acpi_thermal.c index b64d8df..7226b6c 100644 --- a/sys/dev/acpica/acpi_thermal.c +++ b/sys/dev/acpica/acpi_thermal.c @@ -288,7 +288,8 @@ acpi_tz_attach(device_t dev) "critical temp setpoint (shutdown now)"); SYSCTL_ADD_PROC(&sc->tz_sysctl_ctx, SYSCTL_CHILDREN(sc->tz_sysctl_tree), OID_AUTO, "_ACx", CTLTYPE_INT | CTLFLAG_RD, - &sc->tz_zone.ac, 0, sysctl_handle_int, "IK", ""); + &sc->tz_zone.ac, sizeof(sc->tz_zone.ac), + sysctl_handle_opaque, "IK", ""); SYSCTL_ADD_PROC(&sc->tz_sysctl_ctx, SYSCTL_CHILDREN(sc->tz_sysctl_tree), OID_AUTO, "_TC1", CTLTYPE_INT | CTLFLAG_RW, sc, offsetof(struct acpi_tz_softc, tz_zone.tc1), |