summaryrefslogtreecommitdiff
path: root/emulators/simh/patches/patch-sim__timer.h
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/simh/patches/patch-sim__timer.h')
-rw-r--r--emulators/simh/patches/patch-sim__timer.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/emulators/simh/patches/patch-sim__timer.h b/emulators/simh/patches/patch-sim__timer.h
new file mode 100644
index 00000000000..53112b39e15
--- /dev/null
+++ b/emulators/simh/patches/patch-sim__timer.h
@@ -0,0 +1,15 @@
+$NetBSD: patch-sim__timer.h,v 1.1 2012/07/16 00:14:33 abs Exp $
+
+Relax granularity check to allow setting idle on a machine with HZ 100
+
+--- sim_timer.h.orig 2008-11-21 20:06:34.000000000 +0000
++++ sim_timer.h
+@@ -35,7 +35,7 @@
+ #define SIM_TMAX 500 /* max timer makeup */
+
+ #define SIM_IDLE_CAL 10 /* ms to calibrate */
+-#define SIM_IDLE_MAX 10 /* max granularity idle */
++#define SIM_IDLE_MAX 20 /* max granularity idle */
+ #define SIM_IDLE_STMIN 10 /* min sec for stability */
+ #define SIM_IDLE_STDFLT 20 /* dft sec for stability */
+ #define SIM_IDLE_STMAX 600 /* max sec for stability */