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/9339945328b0
branches: trunk
changeset: 934261:9339945328b0
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 8df75b976e97 -r 9339945328b0 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