diff options
| author | Mark Brown <broonie@kernel.org> | 2026-10-01 15:16:13 +0100 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-10-01 15:16:13 +0100 |
| commit | 508f676babe7773834b94f33f9261ea8fe49ad6b (patch) | |
| tree | cba1eaa5642f52de1bfcb6819e71cf6f2d5076f5 /include | |
| parent | df15151566574001fd06877c07b957fa20069c39 (diff) | |
| parent | 898e6a2c5ce0e4aba55d126bbe610f0f77e71226 (diff) | |
| download | linux-next-508f676babe7773834b94f33f9261ea8fe49ad6b.tar.gz linux-next-508f676babe7773834b94f33f9261ea8fe49ad6b.zip | |
Merge branch 'edac-for-next' of https://git.kernel.org/pub/scm/linux/kernel/git/ras/ras.git
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/cacheinfo.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/include/linux/cacheinfo.h b/include/linux/cacheinfo.h index fc879ac4cc4f..56fa646df0d1 100644 --- a/include/linux/cacheinfo.h +++ b/include/linux/cacheinfo.h @@ -82,6 +82,7 @@ struct cpu_cacheinfo { }; struct cpu_cacheinfo *get_cpu_cacheinfo(unsigned int cpu); +int get_cpu_cacheinfo_id(int cpu, int level); int early_cache_level(unsigned int cpu); int init_cache_level(unsigned int cpu); int init_of_cache_level(unsigned int cpu); @@ -137,17 +138,6 @@ static inline struct cacheinfo *get_cpu_cacheinfo_level(int cpu, int level) return NULL; } -/* - * Get the id of the cache associated with @cpu at level @level. - * cpuhp lock must be held. - */ -static inline int get_cpu_cacheinfo_id(int cpu, int level) -{ - struct cacheinfo *ci = get_cpu_cacheinfo_level(cpu, level); - - return ci ? ci->id : -1; -} - #if defined(CONFIG_ARM64) || defined(CONFIG_ARM) #define use_arch_cache_info() (true) #else |
