Module Name:    src
Committed By:   thorpej
Date:           Sun Oct 11 18:39:48 UTC 2020

Modified Files:
        src/sys/arch/alpha/alpha: qemu.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/alpha/alpha/qemu.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/alpha/alpha/qemu.c
diff -u src/sys/arch/alpha/alpha/qemu.c:1.4 src/sys/arch/alpha/alpha/qemu.c:1.5
--- src/sys/arch/alpha/alpha/qemu.c:1.4	Wed Oct  7 14:07:42 2020
+++ src/sys/arch/alpha/alpha/qemu.c	Sun Oct 11 18:39:48 2020
@@ -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 @@ qemu_clock_init(void * const v __unused)
 
 		/*
 		 * 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;

Reply via email to