aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc/mc146818rtc.h
diff options
context:
space:
mode:
authorNathan Lynch <ntl@pobox.com>2008-07-27 01:24:55 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2008-07-28 02:30:52 -0400
commit124c27d375f72dd857eac27f2932f9f01df76bf4 (patch)
tree927a58733ee4b35eca6958f42af19e0d97124964 /include/asm-powerpc/mc146818rtc.h
parente9efed3b80a83e44b98fc626f3268ae072550b84 (diff)
powerpc: Show processor cache information in sysfs
Collect cache information from the OF device tree and display it in the cpu hierarchy in sysfs. This is intended to be compatible at the userspace level with x86's implementation[1], hence some of the funny attribute names. The arrangement of cache info is not immediately intuitive, but (again) it's for compatibility's sake. The cache attributes exposed are: type (Data, Instruction, or Unified) level (1, 2, 3...) size coherency_line_size number_of_sets ways_of_associativity All of these can be derived on platforms that follow the OF PowerPC Processor binding. The code "publishes" only those attributes for which it is able to determine values; attributes for values which cannot be determined are not created at all. [1] arch/x86/kernel/cpu/intel_cacheinfo.c BenH: Turned some printk's into pr_debug, added better NULL checking in a couple of places. Signed-off-by: Nathan Lynch <ntl@pobox.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'include/asm-powerpc/mc146818rtc.h')
0 files changed, 0 insertions, 0 deletions