PERFORCE change 119368 for review

Rui Paulo rpaulo at FreeBSD.org
Sun May 6 20:44:57 UTC 2007


http://perforce.freebsd.org/chv.cgi?CH=119368

Change 119368 by rpaulo at rpaulo_epsilon on 2007/05/06 20:43:55

	Don't print anything in the attach routine because the
	other CPUs will only be started later (we can't mi_switch()).
	All the information printed here will only apply to the BSP.

Affected files ...

.. //depot/projects/soc2007/rpaulo-macbook/dev/msrtemp/msrtemp.c#4 edit

Differences ...

==== //depot/projects/soc2007/rpaulo-macbook/dev/msrtemp/msrtemp.c#4 (text+ko) ====

@@ -23,7 +23,7 @@
  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  * POSSIBILITY OF SUCH DAMAGE.
  *
- * $P4: //depot/projects/soc2007/rpaulo-macbook/dev/msrtemp/msrtemp.c#3 $
+ * $P4: //depot/projects/soc2007/rpaulo-macbook/dev/msrtemp/msrtemp.c#4 $
  *
  */
 
@@ -131,26 +131,6 @@
 
 	pdev = device_get_parent(dev);
 
-	if (bootverbose) {
-		mtx_lock_spin(&sched_lock);
-		sched_bind(curthread, device_get_unit(dev));
-
-		/*
-		 * CPUID 0x06 returns 1 if the processor has on-die thermal
-		 * sensors. We already checked that in the identify routine.
-		 * EBX[0:3] contains the number of sensors.
-		 */
-		do_cpuid(0x06, regs);
-
-		sched_unbind(curthread);
-		mtx_unlock_spin(&sched_lock);
-
-		device_printf(dev, "%d digital thermal sensor(s)\n",
-			      regs[2] & 0x03);
-	}
-	device_printf(dev, "current temperature: %d degC\n",
-		      msrtemp_get_temp(device_get_unit(dev)));
-
 	/*
 	 * Add the "temperature" MIB to dev.cpu.N.
 	 */


More information about the p4-projects mailing list