summaryrefslogtreecommitdiffstats
path: root/sound/pci
diff options
context:
space:
mode:
authorNathan Lynch <ntl@pobox.com>2008-07-27 15:24:55 +1000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2008-07-28 16:30:52 +1000
commit124c27d375f72dd857eac27f2932f9f01df76bf4 (patch)
tree927a58733ee4b35eca6958f42af19e0d97124964 /sound/pci
parente9efed3b80a83e44b98fc626f3268ae072550b84 (diff)
downloadop-kernel-dev-124c27d375f72dd857eac27f2932f9f01df76bf4.zip
op-kernel-dev-124c27d375f72dd857eac27f2932f9f01df76bf4.tar.gz
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 'sound/pci')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud