From: miod Date: Sat, 12 Aug 2023 13:19:28 +0000 (+0000) Subject: Repair compilability for non-MULTIPROCESSOR kernels. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=8afcf90fb39e4a84606e93137c2b6c20f44312cb;p=openbsd Repair compilability for non-MULTIPROCESSOR kernels. --- diff --git a/sys/kern/kern_clock.c b/sys/kern/kern_clock.c index 1e97ba83585..06c0d5f4afd 100644 --- a/sys/kern/kern_clock.c +++ b/sys/kern/kern_clock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_clock.c,v 1.112 2023/08/11 22:02:50 cheloha Exp $ */ +/* $OpenBSD: kern_clock.c,v 1.113 2023/08/12 13:19:28 miod Exp $ */ /* $NetBSD: kern_clock.c,v 1.34 1996/06/09 04:51:03 briggs Exp $ */ /*- @@ -111,7 +111,9 @@ initclocks(void) void hardclock(struct clockframe *frame) { +#if defined(MULTIPROCESSOR) || defined(__hppa__) /* XXX */ struct cpu_info *ci = curcpu(); +#endif #if NDT > 0 DT_ENTER(profile, NULL);