diff options
author | ian <ian@FreeBSD.org> | 2014-09-09 19:47:35 +0000 |
---|---|---|
committer | ian <ian@FreeBSD.org> | 2014-09-09 19:47:35 +0000 |
commit | a029ba8e5f573f39d5ca9929cdd06f8fa3aaf87a (patch) | |
tree | 068cca0901cba23e9414e2550b118c7dbed556d4 /sys/arm/freescale | |
parent | ba4eeb7160becfc24bd1e3ed51f59e5c6ae0154a (diff) | |
download | FreeBSD-src-a029ba8e5f573f39d5ca9929cdd06f8fa3aaf87a.zip FreeBSD-src-a029ba8e5f573f39d5ca9929cdd06f8fa3aaf87a.tar.gz |
MFC r270065:
Move the imx6 sysctl temperature info to hw.imx6 where all the other
soc-wide info lives. It was under dev.imx6_anatop.0.
Approved by: re(gjb)
Diffstat (limited to 'sys/arm/freescale')
-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 b1757fb..6891418 100644 --- a/sys/arm/freescale/imx/imx6_anatop.c +++ b/sys/arm/freescale/imx/imx6_anatop.c @@ -561,7 +561,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), @@ -605,11 +604,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"); |