From f265931038bd5d4784d95756bac9482fea5c237a Mon Sep 17 00:00:00 2001 From: jake Date: Sun, 19 Nov 2000 06:02:32 +0000 Subject: - Protect the callout wheel with a separate spin mutex, callout_lock. - Use the mutex in hardclock to ensure no races between it and softclock. - Make softclock be INTR_MPSAFE and provide a flag, CALLOUT_MPSAFE, which specifies that a callout handler does not need giant. There is still no way to set this flag when regstering a callout. Reviewed by: -smp@, jlemon --- sys/alpha/alpha/machdep.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/alpha') diff --git a/sys/alpha/alpha/machdep.c b/sys/alpha/alpha/machdep.c index 043b903..39f5b34 100644 --- a/sys/alpha/alpha/machdep.c +++ b/sys/alpha/alpha/machdep.c @@ -387,6 +387,8 @@ again: TAILQ_INIT(&callwheel[i]); } + mtx_init(&callout_lock, "callout", MTX_SPIN); + #if defined(USERCONFIG) #if defined(USERCONFIG_BOOT) if (1) -- cgit v1.1