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 Print "Hz".
details: https://anonhg.NetBSD.org/src/rev/d89730ad40c9
branches: trunk
changeset: 1009340:d89730ad40c9
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Tue Apr 21 07:08:12 2020 +0000
description:
Print "Hz".
diffstat:
sys/arch/x86/x86/identcpu_subr.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (39 lines):
diff -r ab4137ab3be1 -r d89730ad40c9 sys/arch/x86/x86/identcpu_subr.c
--- a/sys/arch/x86/x86/identcpu_subr.c Tue Apr 21 06:45:16 2020 +0000
+++ b/sys/arch/x86/x86/identcpu_subr.c Tue Apr 21 07:08:12 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.1 2020/04/21 02:56:37 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: identcpu_subr.c,v 1.2 2020/04/21 07:08:12 msaitoh Exp $");
#ifdef _KERNEL_OPT
#include "lapic.h"
@@ -110,7 +110,7 @@
x86_cpuid(0x16, descs);
if (descs[0] != 0) {
aprint_verbose_dev(ci->ci_dev,
- "CPU base freq %" PRIu64 "\n",
+ "CPU base freq %" PRIu64 " Hz\n",
(uint64_t)descs[0] * 1000000);
/*
@@ -125,7 +125,7 @@
}
if (descs[1] != 0) {
aprint_verbose_dev(ci->ci_dev,
- "CPU max freq %" PRIu64 "\n",
+ "CPU max freq %" PRIu64 " Hz\n",
(uint64_t)descs[1] * 1000000);
}
}
@@ -139,7 +139,7 @@
#endif
}
if (freq != 0)
- aprint_verbose_dev(ci->ci_dev, "TSC freq %" PRIu64 "\n",
+ aprint_verbose_dev(ci->ci_dev, "TSC freq %" PRIu64 " Hz\n",
freq);
return freq;
Home |
Main Index |
Thread Index |
Old Index