diff options
Diffstat (limited to 'include/linux/cacheinfo.h')
| -rw-r--r-- | include/linux/cacheinfo.h | 13 | 
1 files changed, 9 insertions, 4 deletions
diff --git a/include/linux/cacheinfo.h b/include/linux/cacheinfo.h index 00b7a6ae8617..908e19d17f49 100644 --- a/include/linux/cacheinfo.h +++ b/include/linux/cacheinfo.h @@ -80,26 +80,31 @@ struct cpu_cacheinfo {  struct cpu_cacheinfo *get_cpu_cacheinfo(unsigned int cpu);  int init_cache_level(unsigned int cpu); +int init_of_cache_level(unsigned int cpu);  int populate_cache_leaves(unsigned int cpu);  int cache_setup_acpi(unsigned int cpu);  bool last_level_cache_is_valid(unsigned int cpu);  bool last_level_cache_is_shared(unsigned int cpu_x, unsigned int cpu_y); +int fetch_cache_info(unsigned int cpu);  int detect_cache_attributes(unsigned int cpu);  #ifndef CONFIG_ACPI_PPTT  /* - * acpi_find_last_cache_level is only called on ACPI enabled + * acpi_get_cache_info() is only called on ACPI enabled   * platforms using the PPTT for topology. This means that if   * the platform supports other firmware configuration methods   * we need to stub out the call when ACPI is disabled.   * ACPI enabled platforms not using PPTT won't be making calls   * to this function so we need not worry about them.   */ -static inline int acpi_find_last_cache_level(unsigned int cpu) +static inline +int acpi_get_cache_info(unsigned int cpu, +			unsigned int *levels, unsigned int *split_levels)  { -	return 0; +	return -ENOENT;  }  #else -int acpi_find_last_cache_level(unsigned int cpu); +int acpi_get_cache_info(unsigned int cpu, +			unsigned int *levels, unsigned int *split_levels);  #endif  const struct attribute_group *cache_get_priv_group(struct cacheinfo *this_leaf);  | 
