Date: Sun, 6 May 2007 20:44:56 GMT From: Rui Paulo <rpaulo@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 119368 for review Message-ID: <200705062044.l46Kiupn098560@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=119368 Change 119368 by rpaulo@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. */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200705062044.l46Kiupn098560>