diff options
author | David S. Miller <davem@davemloft.net> | 2008-11-28 05:26:55 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-04 12:17:09 -0500 |
commit | 3178a07c33747305b7f7140bd55b0f77e7f239eb (patch) | |
tree | e4860d742405a4b7d92d3df9e6f911fc057e8123 /arch/sparc64/kernel/hvcalls.S | |
parent | 6a5726dd6fcc330ef386016e160389e05fd0015d (diff) |
sparc64: Add performance counter hypervisor calls for sun4v.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/kernel/hvcalls.S')
-rw-r--r-- | arch/sparc64/kernel/hvcalls.S | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/arch/sparc64/kernel/hvcalls.S b/arch/sparc64/kernel/hvcalls.S index e066269d1594..8a5f35ffb15e 100644 --- a/arch/sparc64/kernel/hvcalls.S +++ b/arch/sparc64/kernel/hvcalls.S | |||
@@ -766,3 +766,35 @@ ENTRY(sun4v_mmu_demap_all) | |||
766 | retl | 766 | retl |
767 | nop | 767 | nop |
768 | ENDPROC(sun4v_mmu_demap_all) | 768 | ENDPROC(sun4v_mmu_demap_all) |
769 | |||
770 | ENTRY(sun4v_niagara_getperf) | ||
771 | mov %o0, %o4 | ||
772 | mov HV_FAST_GET_PERFREG, %o5 | ||
773 | ta HV_FAST_TRAP | ||
774 | stx %o1, [%o4] | ||
775 | retl | ||
776 | nop | ||
777 | ENDPROC(sun4v_niagara_getperf) | ||
778 | |||
779 | ENTRY(sun4v_niagara_setperf) | ||
780 | mov HV_FAST_SET_PERFREG, %o5 | ||
781 | ta HV_FAST_TRAP | ||
782 | retl | ||
783 | nop | ||
784 | ENDPROC(sun4v_niagara_setperf) | ||
785 | |||
786 | ENTRY(sun4v_niagara2_getperf) | ||
787 | mov %o0, %o4 | ||
788 | mov HV_FAST_N2_GET_PERFREG, %o5 | ||
789 | ta HV_FAST_TRAP | ||
790 | stx %o1, [%o4] | ||
791 | retl | ||
792 | nop | ||
793 | ENDPROC(sun4v_niagara2_getperf) | ||
794 | |||
795 | ENTRY(sun4v_niagara2_setperf) | ||
796 | mov HV_FAST_N2_SET_PERFREG, %o5 | ||
797 | ta HV_FAST_TRAP | ||
798 | retl | ||
799 | nop | ||
800 | ENDPROC(sun4v_niagara2_setperf) | ||