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 sun4v: Change clk and sclk variable...
details: https://anonhg.NetBSD.org/src/rev/f36644a87c56
branches: trunk
changeset: 826311:f36644a87c56
user: palle <palle%NetBSD.org@localhost>
date: Sun Aug 27 19:31:43 2017 +0000
description:
sun4v: Change clk and sclk variables to unsigned type so modern faster systems with CPU frequencies above 2 Ghz are shown correctly. Example is a 3599.910 MHz SPARC T5-2 system that otherwise is
shown incorrectly as -695.-57 MHz. Based on code from OpenBSD cpu.c rev. 1.41. Verified on sun4u using qemu and sun4v on SPARC T5-2
diffstat:
sys/arch/sparc64/sparc64/cpu.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 9330116294dd -r f36644a87c56 sys/arch/sparc64/sparc64/cpu.c
--- a/sys/arch/sparc64/sparc64/cpu.c Sun Aug 27 19:17:54 2017 +0000
+++ b/sys/arch/sparc64/sparc64/cpu.c Sun Aug 27 19:31:43 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.c,v 1.130 2017/02/10 23:26:23 palle Exp $ */
+/* $NetBSD: cpu.c,v 1.131 2017/08/27 19:31:43 palle Exp $ */
/*
* Copyright (c) 1996
@@ -52,7 +52,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.130 2017/02/10 23:26:23 palle Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.131 2017/08/27 19:31:43 palle Exp $");
#include "opt_multiprocessor.h"
@@ -421,7 +421,7 @@
cpu_attach(device_t parent, device_t dev, void *aux)
{
int node;
- long clk, sclk = 0;
+ unsigned int clk, sclk = 0;
struct mainbus_attach_args *ma = aux;
struct cpu_info *ci;
const char *sep;
Home |
Main Index |
Thread Index |
Old Index