diff options
Diffstat (limited to 'arch/powerpc/perf/hv-common.c')
-rw-r--r-- | arch/powerpc/perf/hv-common.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/powerpc/perf/hv-common.c b/arch/powerpc/perf/hv-common.c index 47e02b366f58..7dce8f109967 100644 --- a/arch/powerpc/perf/hv-common.c +++ b/arch/powerpc/perf/hv-common.c | |||
@@ -9,13 +9,13 @@ unsigned long hv_perf_caps_get(struct hv_perf_caps *caps) | |||
9 | unsigned long r; | 9 | unsigned long r; |
10 | struct p { | 10 | struct p { |
11 | struct hv_get_perf_counter_info_params params; | 11 | struct hv_get_perf_counter_info_params params; |
12 | struct cv_system_performance_capabilities caps; | 12 | struct hv_gpci_system_performance_capabilities caps; |
13 | } __packed __aligned(sizeof(uint64_t)); | 13 | } __packed __aligned(sizeof(uint64_t)); |
14 | 14 | ||
15 | struct p arg = { | 15 | struct p arg = { |
16 | .params = { | 16 | .params = { |
17 | .counter_request = cpu_to_be32( | 17 | .counter_request = cpu_to_be32( |
18 | CIR_SYSTEM_PERFORMANCE_CAPABILITIES), | 18 | HV_GPCI_system_performance_capabilities), |
19 | .starting_index = cpu_to_be32(-1), | 19 | .starting_index = cpu_to_be32(-1), |
20 | .counter_info_version_in = 0, | 20 | .counter_info_version_in = 0, |
21 | } | 21 | } |
@@ -31,9 +31,9 @@ unsigned long hv_perf_caps_get(struct hv_perf_caps *caps) | |||
31 | 31 | ||
32 | caps->version = arg.params.counter_info_version_out; | 32 | caps->version = arg.params.counter_info_version_out; |
33 | caps->collect_privileged = !!arg.caps.perf_collect_privileged; | 33 | caps->collect_privileged = !!arg.caps.perf_collect_privileged; |
34 | caps->ga = !!(arg.caps.capability_mask & CV_CM_GA); | 34 | caps->ga = !!(arg.caps.capability_mask & HV_GPCI_CM_GA); |
35 | caps->expanded = !!(arg.caps.capability_mask & CV_CM_EXPANDED); | 35 | caps->expanded = !!(arg.caps.capability_mask & HV_GPCI_CM_EXPANDED); |
36 | caps->lab = !!(arg.caps.capability_mask & CV_CM_LAB); | 36 | caps->lab = !!(arg.caps.capability_mask & HV_GPCI_CM_LAB); |
37 | 37 | ||
38 | return r; | 38 | return r; |
39 | } | 39 | } |