The addition of HZ to sys/kernel.h in v1.26 overrides the default
definition of HZ in sh/clock.c, changing landisk from HZ=64 to HZ=100.
Explicitly set HZ=64 in the GENERIC and RAMDISK config(8) files to can
change it from 100 back to 64.
Not sure if this is the best thing, but it does fix the problem.
Problem confirmed by, and fix tested by, miod@.
ok miod@
-# $OpenBSD: GENERIC,v 1.59 2021/08/22 06:26:28 deraadt Exp $
+# $OpenBSD: GENERIC,v 1.60 2023/03/12 22:18:58 cheloha Exp $
#
# For further information on compiling OpenBSD kernels, see the config(8)
# man page.
include "../../../conf/GENERIC"
maxusers 32 # estimated number of users
+option HZ=64
+
option SH4 # processor family; MANDATORY
option SH7751R # processor type; MANDATORY
-# $OpenBSD: RAMDISK,v 1.27 2020/03/27 14:34:51 otto Exp $
+# $OpenBSD: RAMDISK,v 1.28 2023/03/12 22:18:58 cheloha Exp $
machine landisk sh
maxusers 4
+option HZ=64
+
option SMALL_KERNEL
option NO_PROPOLICE
option BOOT_CONFIG
-/* $OpenBSD: clock.c,v 1.12 2022/12/06 01:19:35 cheloha Exp $ */
+/* $OpenBSD: clock.c,v 1.13 2023/03/12 22:18:58 cheloha Exp $ */
/* $NetBSD: clock.c,v 1.32 2006/09/05 11:09:36 uwe Exp $ */
/*-
#define NWDOG 0
-#ifndef HZ
-#define HZ 64
-#endif
#define MINYEAR 2002 /* "today" */
#define SH_RTC_CLOCK 16384 /* Hz */
panic("No PCLOCK information.");
/* Set global variables. */
- hz = HZ;
tick = 1000000 / hz;
tick_nsec = 1000000000 / hz;