Fix a few acpi sysctls that want "IK" formatting to specify CTLTYPE_INT.
This got broken after r217586. Pointy hat: to me Tested by: David Wolfskill < davit AT catwhisker DOT org >
This commit is contained in:
parent
d0e16e0d1e
commit
8db47cc0d4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=220798
@ -257,10 +257,10 @@ acpi_tz_attach(device_t dev)
|
||||
sc->tz_sysctl_tree = SYSCTL_ADD_NODE(&sc->tz_sysctl_ctx,
|
||||
SYSCTL_CHILDREN(acpi_tz_sysctl_tree),
|
||||
OID_AUTO, oidname, CTLFLAG_RD, 0, "");
|
||||
SYSCTL_ADD_OPAQUE(&sc->tz_sysctl_ctx, SYSCTL_CHILDREN(sc->tz_sysctl_tree),
|
||||
OID_AUTO, "temperature", CTLFLAG_RD, &sc->tz_temperature,
|
||||
sizeof(sc->tz_temperature), "IK",
|
||||
"current thermal zone temperature");
|
||||
SYSCTL_ADD_PROC(&sc->tz_sysctl_ctx, SYSCTL_CHILDREN(sc->tz_sysctl_tree),
|
||||
OID_AUTO, "temperature", CTLTYPE_INT | CTLFLAG_RD,
|
||||
&sc->tz_temperature, 0, sysctl_handle_int,
|
||||
"IK", "current thermal zone temperature");
|
||||
SYSCTL_ADD_PROC(&sc->tz_sysctl_ctx, SYSCTL_CHILDREN(sc->tz_sysctl_tree),
|
||||
OID_AUTO, "active", CTLTYPE_INT | CTLFLAG_RW,
|
||||
sc, 0, acpi_tz_active_sysctl, "I", "cooling is active");
|
||||
@ -286,9 +286,9 @@ acpi_tz_attach(device_t dev)
|
||||
sc, offsetof(struct acpi_tz_softc, tz_zone.crt),
|
||||
acpi_tz_temp_sysctl, "IK",
|
||||
"critical temp setpoint (shutdown now)");
|
||||
SYSCTL_ADD_OPAQUE(&sc->tz_sysctl_ctx, SYSCTL_CHILDREN(sc->tz_sysctl_tree),
|
||||
OID_AUTO, "_ACx", CTLFLAG_RD, &sc->tz_zone.ac,
|
||||
sizeof(sc->tz_zone.ac), "IK", "");
|
||||
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", "");
|
||||
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),
|
||||
|
Loading…
Reference in New Issue
Block a user