Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/sparc64 fix same pasto as in sparc/cpu.c - ...
details: https://anonhg.NetBSD.org/src/rev/5868e9cb09c3
branches: trunk
changeset: 328724:5868e9cb09c3
user: macallan <macallan%NetBSD.org@localhost>
date: Tue Apr 15 12:22:49 2014 +0000
description:
fix same pasto as in sparc/cpu.c - print frequency in MHz if we say it's in MHz
diffstat:
sys/arch/sparc64/sparc64/cpu.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 4ea9a59416f9 -r 5868e9cb09c3 sys/arch/sparc64/sparc64/cpu.c
--- a/sys/arch/sparc64/sparc64/cpu.c Tue Apr 15 11:44:26 2014 +0000
+++ b/sys/arch/sparc64/sparc64/cpu.c Tue Apr 15 12:22:49 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.c,v 1.109 2014/03/24 20:06:32 christos Exp $ */
+/* $NetBSD: cpu.c,v 1.110 2014/04/15 12:22:49 macallan Exp $ */
/*
* Copyright (c) 1996
@@ -52,7 +52,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.109 2014/03/24 20:06:32 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.110 2014/04/15 12:22:49 macallan Exp $");
#include "opt_multiprocessor.h"
@@ -311,7 +311,7 @@
ci->ci_system_clockrate[1] = sclk / 1000000;
snprintf(buf, sizeof buf, "%s @ %s MHz",
- prom_getpropstring(node, "name"), clockfreq(clk));
+ prom_getpropstring(node, "name"), clockfreq(clk / 1000));
cpu_setmodel("%s (%s)", machine_model, buf);
aprint_normal(": %s, UPA id %d\n", buf, ci->ci_cpuid);
Home |
Main Index |
Thread Index |
Old Index