sparc64: Add 3rd level cache info to /sys
This patch pulls line size and cache size info from the machine description and
adds l3 caches files to /sys/bus/cpu/devices/cpu* directories. It also
structures the information in the same directory hierachy as x86 so that user
programs like irqbalance can find the needed information to work correctly.
> ls /sys/bus/cpu/devices/cpu*
clock_tick l1_dcache_size l2_cache_line_size l3_cache_size
crash_notes l1_icache_line_size l2_cache_size node0
l1_dcache_line_size l1_icache_size l3_cache_line_size topology
Sample results on a T7-4:
> cat /sys/bus/cpu/devices/cpu*/l3*
64
8388608
/sys/bus/cpu/devices/cpu*/cache/index0/:
coherency_line_size level shared_cpu_list shared_cpu_map size type
/sys/bus/cpu/devices/cpu*/cache/index1/:
coherency_line_size level shared_cpu_list shared_cpu_map size type
/sys/bus/cpu/devices/cpu*/cache/index2/:
coherency_line_size level shared_cpu_list shared_cpu_map size type
/sys/bus/cpu/devices/cpu*/cache/index3/:
coherency_line_size level shared_cpu_list shared_cpu_map size type
cat /sys/bus/cpu/devices/cpu32/cache/index3/*
64
3
32-63,128-223
0,
ffffffff,
ffffffff,
ffffffff,
00000000,
00000000,
ffffffff,
00000000
8388608
Unified
Orabug:
22748950
Signed-off-by: Chris Hyser <chris.hyser@oracle.com>