Last active
June 14, 2024 22:21
-
-
Save ao-kenji/abd138d34cff003ed92a0e8aea42de57 to your computer and use it in GitHub Desktop.
Experimental diff to enable uvm per-CPU cache on luna88k
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: sys/arch/m88k/include/cpu.h | |
=================================================================== | |
RCS file: /cvs/src/sys/arch/m88k/include/cpu.h,v | |
diff -u -r1.79 cpu.h | |
--- sys/arch/m88k/include/cpu.h 9 Jun 2024 21:15:29 -0000 1.79 | |
+++ sys/arch/m88k/include/cpu.h 14 Jun 2024 22:17:58 -0000 | |
@@ -64,6 +64,7 @@ | |
#include <sys/queue.h> | |
#include <sys/sched.h> | |
#include <sys/srp.h> | |
+#include <uvm/uvm_percpu.h> | |
#if defined(MULTIPROCESSOR) | |
#if !defined(MAX_CPUS) || MAX_CPUS > 4 | |
@@ -171,6 +172,8 @@ | |
#if defined(MULTIPROCESSOR) | |
struct srp_hazard ci_srp_hazards[SRP_HAZARD_NUM]; | |
+#define __HAVE_UVM_PERCPU | |
+ struct uvm_pmr_cache ci_uvm; /* [o] page cache */ | |
#endif | |
#ifdef DIAGNOSTIC | |
int ci_mutex_level; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment