Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/x86/x86 Remove debug printf.



details:   https://anonhg.NetBSD.org/src/rev/8d68dd9f83ad
branches:  trunk
changeset: 1010840:8d68dd9f83ad
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Tue Jun 09 05:06:27 2020 +0000

description:
Remove debug printf.

diffstat:

 sys/arch/x86/x86/identcpu_subr.c |  7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diffs (24 lines):

diff -r 12a9d35e8c2c -r 8d68dd9f83ad sys/arch/x86/x86/identcpu_subr.c
--- a/sys/arch/x86/x86/identcpu_subr.c  Tue Jun 09 04:48:45 2020 +0000
+++ b/sys/arch/x86/x86/identcpu_subr.c  Tue Jun 09 05:06:27 2020 +0000
@@ -33,7 +33,7 @@
  * See src/usr.sbin/cpuctl/{Makefile, arch/i386.c}).
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: identcpu_subr.c,v 1.4 2020/05/12 06:32:05 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: identcpu_subr.c,v 1.5 2020/06/09 05:06:27 msaitoh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "lapic.h"
@@ -71,10 +71,7 @@
        x86_cpuid(0x15, descs);
        denominator = descs[0];
        numerator = descs[1];
-       if ((denominator == 0) || numerator == 0) {
-               aprint_debug_dev(ci->ci_dev,
-                   "TSC/core crystal clock ratio is not enumerated\n");
-       } else {
+       if ((denominator != 0) && numerator != 0) {
                khz = 0;
                if (descs[2] != 0)
                        khz = descs[2] / 1000;



Home | Main Index | Thread Index | Old Index