Commit graph android_kernel_sony_sdm845/arch/sparc64/kernel/sysfs.c
Message SHA1
[SPARC64]: Add NUMA support.
Currently there is only code to parse NUMA attributes on
sun4v/niagara systems, but later on we will add such parsing
for older systems.

Signed-off-by: David S. Miller <davem@davemloft.net>

David S. Miller   commited 2008-04-23 23:32:17 -07:00
919ee677b6
[SPARC64]: More sensible udelay implementation.
Take a page from the powerpc folks and just calculate the
delay factor directly.

Since frequency scaling chips use a system-tick register,
the value is going to be the same system-wide.

Signed-off-by: David S. Miller <davem@davemloft.net>

David S. Miller   commited 2007-07-16 04:05:02 -07:00
8b99cfb8cc
[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>

David Miller   authored and   David S. Miller   commited 2007-06-04 21:49:57 -07:00
d887ab3a9b
[SPARC64]: Export basic cpu properties via sysfs.
Cache sizes, udelay_val, and clock_tick.

Signed-off-by: David S. Miller <davem@davemloft.net>

David S. Miller   commited 2007-06-04 21:49:51 -07:00
d1f253e60a
[SPARC64]: Move topology init code into new file, sysfs.c
Also, use per-cpu data for struct cpu.  Calling kmalloc for
each cpu in topology_init() is just plain clumsy.

Signed-off-by: David S. Miller <davem@davemloft.net>

David S. Miller   commited 2007-06-04 21:49:50 -07:00
eff3414b72