Module Name: src
Committed By: macallan
Date: Fri Jun 8 23:39:31 UTC 2018
Modified Files:
src/sys/arch/macppc/dev: obio.c
Log Message:
fix low CPU speed reporting when using DFS
To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 src/sys/arch/macppc/dev/obio.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/macppc/dev/obio.c
diff -u src/sys/arch/macppc/dev/obio.c:1.45 src/sys/arch/macppc/dev/obio.c:1.46
--- src/sys/arch/macppc/dev/obio.c:1.45 Fri May 4 17:17:48 2018
+++ src/sys/arch/macppc/dev/obio.c Fri Jun 8 23:39:31 2018
@@ -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 @@ obio_setup_gpios(struct obio_softc *sc,
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,