Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/macppc/dev fix low CPU speed reporting when using DFS



details:   https://anonhg.NetBSD.org/src/rev/76529f8006bd
branches:  trunk
changeset: 319735:76529f8006bd
user:      macallan <macallan%NetBSD.org@localhost>
date:      Fri Jun 08 23:39:31 2018 +0000

description:
fix low CPU speed reporting when using DFS

diffstat:

 sys/arch/macppc/dev/obio.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 8e769ec81780 -r 76529f8006bd sys/arch/macppc/dev/obio.c
--- a/sys/arch/macppc/dev/obio.c        Fri Jun 08 18:09:43 2018 +0000
+++ b/sys/arch/macppc/dev/obio.c        Fri Jun 08 23:39:31 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: obio.c,v 1.45 2018/05/04 17:17:48 macallan Exp $       */
+/*     $NetBSD: obio.c,v 1.46 2018/06/08 23:39:31 macallan Exp $       */
 
 /*-
  * Copyright (C) 1998  Internet Research Institute, Inc.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: obio.c,v 1.45 2018/05/04 17:17:48 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: obio.c,v 1.46 2018/06/08 23:39:31 macallan Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -425,7 +425,8 @@
        if (hiclock != 0)
                sc->sc_spd_hi = (hiclock + 500000) / 1000000;
        printf("hiclock: %d\n", sc->sc_spd_hi);
-       
+       if (use_dfs) sc->sc_spd_lo = sc->sc_spd_hi / 2;
+
        sysctl_node = NULL;
 
        if (sysctl_createv(NULL, 0, NULL, 



Home | Main Index | Thread Index | Old Index