Enable uvm percpu caches on sparc64.
authorclaudio <claudio@openbsd.org>
Thu, 13 Jun 2024 06:47:13 +0000 (06:47 +0000)
committerclaudio <claudio@openbsd.org>
Thu, 13 Jun 2024 06:47:13 +0000 (06:47 +0000)
OK kettenis@ jca@ mpi@

sys/arch/sparc64/include/cpu.h

index de9c7cc..b7ea125 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: cpu.h,v 1.107 2024/03/29 21:27:53 miod Exp $  */
+/*     $OpenBSD: cpu.h,v 1.108 2024/06/13 06:47:13 claudio Exp $       */
 /*     $NetBSD: cpu.h,v 1.28 2001/06/14 22:56:58 thorpej Exp $ */
 
 /*
@@ -81,6 +81,7 @@
 #include <sys/clockintr.h>
 #include <sys/sched.h>
 #include <sys/srp.h>
+#include <uvm/uvm_percpu.h>
 
 /*
  * The cpu_info structure is part of a 64KB structure mapped both the kernel
@@ -123,6 +124,8 @@ struct cpu_info {
 #ifdef MULTIPROCESSOR
        int                     ci_itid;
        struct srp_hazard       ci_srp_hazards[SRP_HAZARD_NUM];
+#define __HAVE_UVM_PERCPU
+       struct uvm_pmr_cache    ci_uvm;         /* [o] page cache */
 #endif
        int                     ci_node;
        u_int32_t               ci_randseed;