Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drivers/base: cacheinfo: fix annoying typo when DT nodes are absent

s/hierarcy/hierarchy/

Maybe the typo will annoy people enough so that they add the missing
nodes to their device-tree files, but I still think this is better off
fixed.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Acked-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Will Deacon and committed by
Greg Kroah-Hartman
2539b258 ed1dc8a8

+4 -4
+1 -1
Documentation/ABI/testing/sysfs-devices-system-cpu
··· 243 243 coherency_line_size: the minimum amount of data in bytes that gets 244 244 transferred from memory to cache 245 245 246 - level: the cache hierarcy in the multi-level cache configuration 246 + level: the cache hierarchy in the multi-level cache configuration 247 247 248 248 number_of_sets: total number of sets in the cache, a set is a 249 249 collection of cache lines with the same cache index
+2 -2
drivers/base/cacheinfo.c
··· 191 191 if (ret) 192 192 goto free_ci; 193 193 /* 194 - * For systems using DT for cache hierarcy, of_node and shared_cpu_map 194 + * For systems using DT for cache hierarchy, of_node and shared_cpu_map 195 195 * will be set up here only if they are not populated already 196 196 */ 197 197 ret = cache_shared_cpu_map_setup(cpu); 198 198 if (ret) { 199 - pr_warn("Unable to detect cache hierarcy from DT for CPU %d\n", 199 + pr_warn("Unable to detect cache hierarchy from DT for CPU %d\n", 200 200 cpu); 201 201 goto free_ci; 202 202 }
+1 -1
include/linux/cacheinfo.h
··· 19 19 /** 20 20 * struct cacheinfo - represent a cache leaf node 21 21 * @type: type of the cache - data, inst or unified 22 - * @level: represents the hierarcy in the multi-level cache 22 + * @level: represents the hierarchy in the multi-level cache 23 23 * @coherency_line_size: size of each cache line usually representing 24 24 * the minimum amount of data that gets transferred from memory 25 25 * @number_of_sets: total number of sets, a set is a collection of cache