diff options
author | ian <ian@FreeBSD.org> | 2014-08-16 20:44:45 +0000 |
---|---|---|
committer | ian <ian@FreeBSD.org> | 2014-08-16 20:44:45 +0000 |
commit | 43309c0a51f0b59663404e22356d6d66d44f63f9 (patch) | |
tree | a5bd57fe7672a7b176dd0f96ff04fa50be53d9d0 /sys/arm/freescale/imx/imx6_anatop.c | |
parent | 0c02adae03a55821b773682cdcca772d82058321 (diff) | |
download | FreeBSD-src-43309c0a51f0b59663404e22356d6d66d44f63f9.zip FreeBSD-src-43309c0a51f0b59663404e22356d6d66d44f63f9.tar.gz |
Move the imx6 sysctl temperature info to hw.imx6 where all the other
soc-wide info lives. It was under dev.imx6_anatop.0.
What does anatop mean anyway? Nobody seems to know, so it's probably
not where somebody will think to look for imx6 hardware info.
Diffstat (limited to 'sys/arm/freescale/imx/imx6_anatop.c')
-rw-r--r-- | sys/arm/freescale/imx/imx6_anatop.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/arm/freescale/imx/imx6_anatop.c b/sys/arm/freescale/imx/imx6_anatop.c index 3097838..240abc5 100644 --- a/sys/arm/freescale/imx/imx6_anatop.c +++ b/sys/arm/freescale/imx/imx6_anatop.c @@ -558,7 +558,6 @@ static void initialize_tempmon(struct imx6_anatop_softc *sc) { uint32_t cal; - struct sysctl_ctx_list *ctx; /* * Fetch calibration data: a sensor count at room temperature (25C), @@ -602,11 +601,10 @@ initialize_tempmon(struct imx6_anatop_softc *sc) callout_reset_sbt(&sc->temp_throttle_callout, sc->temp_throttle_delay, 0, tempmon_throttle_check, sc, 0); - ctx = device_get_sysctl_ctx(sc->dev); - SYSCTL_ADD_PROC(ctx, SYSCTL_CHILDREN(device_get_sysctl_tree(sc->dev)), + SYSCTL_ADD_PROC(NULL, SYSCTL_STATIC_CHILDREN(_hw_imx6), OID_AUTO, "temperature", CTLTYPE_INT | CTLFLAG_RD, sc, 0, temp_sysctl_handler, "IK", "Current die temperature"); - SYSCTL_ADD_PROC(ctx, SYSCTL_CHILDREN(device_get_sysctl_tree(sc->dev)), + SYSCTL_ADD_PROC(NULL, SYSCTL_STATIC_CHILDREN(_hw_imx6), OID_AUTO, "throttle_temperature", CTLTYPE_INT | CTLFLAG_RW, sc, 0, temp_throttle_sysctl_handler, "IK", "Throttle CPU when exceeding this temperature"); |