Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/allwinner/aw_thermal.c
Show All 12 Lines | |||||
if (aw_thermal_init(sc) != 0) | if (aw_thermal_init(sc) != 0) | ||||
goto fail; | goto fail; | ||||
for (i = 0; i < sc->conf->nsensors; i++) | for (i = 0; i < sc->conf->nsensors; i++) | ||||
SYSCTL_ADD_PROC(device_get_sysctl_ctx(dev), | SYSCTL_ADD_PROC(device_get_sysctl_ctx(dev), | ||||
SYSCTL_CHILDREN(device_get_sysctl_tree(dev)), | SYSCTL_CHILDREN(device_get_sysctl_tree(dev)), | ||||
OID_AUTO, sc->conf->sensors[i].name, | OID_AUTO, sc->conf->sensors[i].name, | ||||
CTLTYPE_INT | CTLFLAG_RD, | CTLTYPE_INT | CTLFLAG_RD | CTLFLAG_NEEDGIANT, | ||||
sc, i, aw_thermal_sysctl, "IK0", | sc, i, aw_thermal_sysctl, "IK0", | ||||
sc->conf->sensors[i].desc); | sc->conf->sensors[i].desc); | ||||
if (bootverbose) | if (bootverbose) | ||||
for (i = 0; i < sc->conf->nsensors; i++) { | for (i = 0; i < sc->conf->nsensors; i++) { | ||||
device_printf(dev, | device_printf(dev, | ||||
"%s: alarm %dC hyst %dC shut %dC\n", | "%s: alarm %dC hyst %dC shut %dC\n", | ||||
sc->conf->sensors[i].name, | sc->conf->sensors[i].name, | ||||
Show All 12 Lines |