From 23d4dbc72605b1f0fa928f1a867d23f4130148de Mon Sep 17 00:00:00 2001 From: Scott Soule Cheloha Date: Thu, 14 Sep 2023 19:39:49 +0000 Subject: clockintr: replace CL_RNDSTAT with global variable statclock_is_randomized In order to separate the statclock from the clock interrupt subsystem we need to move all statclock state out into the broader kernel. Start by replacing the CL_RNDSTAT flag with a new global variable, "statclock_is_randomized", in kern_clock.c. Update all clockintr_init() callers to set the boolean instead of passing the flag. Thread: https://marc.info/?l=openbsd-tech&m=169428749720476&w=2 --- sys/arch/powerpc64/powerpc64/clock.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/arch/powerpc64') diff --git a/sys/arch/powerpc64/powerpc64/clock.c b/sys/arch/powerpc64/powerpc64/clock.c index 39cab54e93c..7de2ac52c2e 100644 --- a/sys/arch/powerpc64/powerpc64/clock.c +++ b/sys/arch/powerpc64/powerpc64/clock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: clock.c,v 1.12 2023/08/23 01:55:47 cheloha Exp $ */ +/* $OpenBSD: clock.c,v 1.13 2023/09/14 19:39:48 cheloha Exp $ */ /* * Copyright (c) 2020 Mark Kettenis @@ -94,7 +94,8 @@ cpu_initclocks(void) stathz = hz; profhz = stathz * 10; - clockintr_init(CL_RNDSTAT); + statclock_is_randomized = 1; + clockintr_init(0); evcount_attach(&clock_count, "clock", NULL); } -- cgit v1.2.3