[SPARC64]: Provide mmu statistics via sysfs.
authorDavid Miller <davem@t1000.davemloft.net>
Mon, 4 Jun 2007 06:38:09 +0000 (23:38 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Tue, 5 Jun 2007 04:49:57 +0000 (21:49 -0700)
commitd887ab3a9b1899f88b8cfba531e726b5fb2ebd14
tree2f60de04ddf40419c295da0d9f64024fdc53d372
parent48b67356400dd7866c035024aeaa2f804de7cead
[SPARC64]: Provide mmu statistics via sysfs.

If the system supports hypervisor based statistics, allow them to
be fetched, enabled, and disabled via sysfs.

Enable and disable via the boolean:

/sys/devices/systems/cpu/cpuN/mmustat_enable

Statistic values are provided under:

/sys/devices/systems/cpu/cpuN/mmu_status/

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/entry.S
arch/sparc64/kernel/sysfs.c
include/asm-sparc64/hypervisor.h