svn commit: r335186 - head/sys/dev/coretemp

Matt Macy mmacy at FreeBSD.org
Fri Jun 15 02:28:37 UTC 2018


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);
 }
 


More information about the svn-src-head mailing list