Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jun 2018 02:28:36 +0000 (UTC)
From:      Matt Macy <mmacy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r335186 - head/sys/dev/coretemp
Message-ID:  <201806150228.w5F2SaMG076445@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mmacy
Date: Fri Jun 15 02:28:36 2018
New Revision: 335186
URL: https://svnweb.freebsd.org/changeset/base/335186

Log:
  Quiet coretemp probe
  
  Only the first device will print
  coretemp0: <CPU On-Die Thermal Sensors> numa-domain 0 on cpu0
  instead of all hyper threads
  
  Submitted by:	kbowling
  Reviewed by:	imp, sbruno
  Sponsored by:	Limelight Networks
  Differential Revision:	https://reviews.freebsd.org/D15727

Modified:
  head/sys/dev/coretemp/coretemp.c

Modified: head/sys/dev/coretemp/coretemp.c
==============================================================================
--- head/sys/dev/coretemp/coretemp.c	Fri Jun 15 00:54:03 2018	(r335185)
+++ head/sys/dev/coretemp/coretemp.c	Fri Jun 15 02:28:36 2018	(r335186)
@@ -145,6 +145,9 @@ coretemp_probe(device_t dev)
 
 	device_set_desc(dev, "CPU On-Die Thermal Sensors");
 
+	if (!bootverbose && device_get_unit(dev) != 0)
+		device_quiet(dev);
+
 	return (BUS_PROBE_GENERIC);
 }
 



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