Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Aug 2014 20:44:45 +0000 (UTC)
From:      Ian Lepore <ian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r270065 - head/sys/arm/freescale/imx
Message-ID:  <201408162044.s7GKij8h053165@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ian
Date: Sat Aug 16 20:44:45 2014
New Revision: 270065
URL: http://svnweb.freebsd.org/changeset/base/270065

Log:
  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.

Modified:
  head/sys/arm/freescale/imx/imx6_anatop.c

Modified: head/sys/arm/freescale/imx/imx6_anatop.c
==============================================================================
--- head/sys/arm/freescale/imx/imx6_anatop.c	Sat Aug 16 19:13:52 2014	(r270064)
+++ head/sys/arm/freescale/imx/imx6_anatop.c	Sat Aug 16 20:44:45 2014	(r270065)
@@ -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_so
 	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");



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408162044.s7GKij8h053165>