mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[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 <[email protected]>
This commit is contained in:
parent
48b6735640
commit
d887ab3a9b
3 changed files with 227 additions and 15 deletions
|
|
@ -2798,6 +2798,11 @@ struct hv_mmu_statistics {
|
|||
*/
|
||||
#define HV_FAST_MMUSTAT_INFO 0x103
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
extern unsigned long sun4v_mmustat_conf(unsigned long ra, unsigned long *orig_ra);
|
||||
extern unsigned long sun4v_mmustat_info(unsigned long *ra);
|
||||
#endif
|
||||
|
||||
/* NCS crypto services */
|
||||
|
||||
/* ncs_request() sub-function numbers */
|
||||
|
|
|
|||
Loading…
Reference in a new issue