[IA64] Export cpu cache info by sysfs
authorZhang, Yanmin <yanmin_zhang@linux.intel.com>
Mon, 27 Feb 2006 03:37:45 +0000 (11:37 +0800)
committerTony Luck <tony.luck@intel.com>
Fri, 31 Mar 2006 01:14:12 +0000 (17:14 -0800)
commitf19180056ea09ec6a5d32e741234451a1e6eba4d
tree386a178dd80773e3b62e6989f4faaaddb9602aa8
parentd1127e40e8d75cd3855e35424937c73d0bcec558
[IA64] Export cpu cache info by sysfs

The patch exports 8 attributes of cpu cache info under
/sys/devices/system/cpu/cpuX/cache/indexX:
1) level
2) type
3) coherency_line_size
4) ways_of_associativity
5) size
6) shared_cpu_map
7) attributes
8) number_of_sets: number_of_sets=size/ways_of_associativity/coherency_line_size.

Signed-off-by: Zhang Yanmin <yanmin.zhang@intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/kernel/topology.c
include/asm-ia64/pal.h