Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/alpha/alpha initclocks() now fixes up tick and tick...



details:   https://anonhg.NetBSD.org/src/rev/84f8bf5f992a
branches:  trunk
changeset: 940615:84f8bf5f992a
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sun Oct 11 18:39:48 2020 +0000

description:
initclocks() now fixes up tick and tickadj if hz changes, so we no
longer need to do it.

diffstat:

 sys/arch/alpha/alpha/qemu.c |  8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diffs (24 lines):

diff -r 397fa9b541c1 -r 84f8bf5f992a sys/arch/alpha/alpha/qemu.c
--- a/sys/arch/alpha/alpha/qemu.c       Sun Oct 11 18:39:09 2020 +0000
+++ b/sys/arch/alpha/alpha/qemu.c       Sun Oct 11 18:39:48 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: qemu.c,v 1.4 2020/10/07 14:07:42 thorpej Exp $ */
+/* $NetBSD: qemu.c,v 1.5 2020/10/11 18:39:48 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2020 The NetBSD Foundation, Inc.
@@ -147,13 +147,9 @@
 
                /*
                 * hz=1024 is a little bananas for an emulated
-                * virtual machine.  Reset to something more
-                * reasonable, and recalculate everything based
-                * on it.
+                * virtual machine.  Let MI code drive schedhz.
                 */
                hz = 50;
-               tick = 1000000 / hz;
-               tickadj = (240000 / (60 * hz)) ? (240000 / (60 * hz)) : 1;
                schedhz = 0;
 
                qemu_nsec_per_tick = 1000000000UL / hz;



Home | Main Index | Thread Index | Old Index