aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base/cacheinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/base/cacheinfo.c')
-rw-r--r--drivers/base/cacheinfo.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/base/cacheinfo.c b/drivers/base/cacheinfo.c
index a7359535caf5..8827c60f51e2 100644
--- a/drivers/base/cacheinfo.c
+++ b/drivers/base/cacheinfo.c
@@ -213,6 +213,8 @@ int __weak cache_setup_acpi(unsigned int cpu)
213 return -ENOTSUPP; 213 return -ENOTSUPP;
214} 214}
215 215
216unsigned int coherency_max_size;
217
216static int cache_shared_cpu_map_setup(unsigned int cpu) 218static int cache_shared_cpu_map_setup(unsigned int cpu)
217{ 219{
218 struct cpu_cacheinfo *this_cpu_ci = get_cpu_cacheinfo(cpu); 220 struct cpu_cacheinfo *this_cpu_ci = get_cpu_cacheinfo(cpu);
@@ -251,6 +253,9 @@ static int cache_shared_cpu_map_setup(unsigned int cpu)
251 cpumask_set_cpu(i, &this_leaf->shared_cpu_map); 253 cpumask_set_cpu(i, &this_leaf->shared_cpu_map);
252 } 254 }
253 } 255 }
256 /* record the maximum cache line size */
257 if (this_leaf->coherency_line_size > coherency_max_size)
258 coherency_max_size = this_leaf->coherency_line_size;
254 } 259 }
255 260
256 return 0; 261 return 0;