summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/perf/hv-gpci.h
diff options
context:
space:
mode:
authorScott Cheloha <cheloha@linux.ibm.com>2020-07-27 20:46:04 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2020-09-02 03:00:20 +0200
commit59562b5c33d6ff3685509ed58b2ed3c5b5712704 (patch)
tree56e0cadd547e30a4acd08a2c81a702ca9e9aa253 /arch/powerpc/perf/hv-gpci.h
parentpowerpc: drop hard_reset_now() and poweroff_now() declaration (diff)
downloadlinux-59562b5c33d6ff3685509ed58b2ed3c5b5712704.tar.xz
linux-59562b5c33d6ff3685509ed58b2ed3c5b5712704.zip
powerpc/perf: consolidate GPCI hcall structs into asm/hvcall.h
The H_GetPerformanceCounterInfo (GPCI) hypercall input/output structs are useful to modules outside of perf/, so move them into asm/hvcall.h to live alongside the other powerpc hypercall structs. Leave the perf-specific GPCI stuff in perf/hv-gpci.h. Signed-off-by: Scott Cheloha <cheloha@linux.ibm.com> Acked-by: Nathan Lynch <nathanl@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20200727184605.2945095-1-cheloha@linux.ibm.com
Diffstat (limited to 'arch/powerpc/perf/hv-gpci.h')
-rw-r--r--arch/powerpc/perf/hv-gpci.h27
1 files changed, 0 insertions, 27 deletions
diff --git a/arch/powerpc/perf/hv-gpci.h b/arch/powerpc/perf/hv-gpci.h
index a3053eda5dcc..4d108262bed7 100644
--- a/arch/powerpc/perf/hv-gpci.h
+++ b/arch/powerpc/perf/hv-gpci.h
@@ -2,33 +2,6 @@
#ifndef LINUX_POWERPC_PERF_HV_GPCI_H_
#define LINUX_POWERPC_PERF_HV_GPCI_H_
-#include <linux/types.h>
-
-/* From the document "H_GetPerformanceCounterInfo Interface" v1.07 */
-
-/* H_GET_PERF_COUNTER_INFO argument */
-struct hv_get_perf_counter_info_params {
- __be32 counter_request; /* I */
- __be32 starting_index; /* IO */
- __be16 secondary_index; /* IO */
- __be16 returned_values; /* O */
- __be32 detail_rc; /* O, only needed when called via *_norets() */
-
- /*
- * O, size each of counter_value element in bytes, only set for version
- * >= 0x3
- */
- __be16 cv_element_size;
-
- /* I, 0 (zero) for versions < 0x3 */
- __u8 counter_info_version_in;
-
- /* O, 0 (zero) if version < 0x3. Must be set to 0 when making hcall */
- __u8 counter_info_version_out;
- __u8 reserved[0xC];
- __u8 counter_value[];
-} __packed;
-
/*
* counter info version => fw version/reference (spec version)
*