linux/drivers/gpu/drm/amd
Arnd Bergmann d155bef063 amdgpu: make pmu support optional
When CONFIG_PERF_EVENTS is disabled, we cannot compile the pmu
portion of the amdgpu driver:

drivers/gpu/drm/amd/amdgpu/amdgpu_pmu.c:48:38: error: no member named 'hw' in 'struct perf_event'
        struct hw_perf_event *hwc = &event->hw;
                                     ~~~~~  ^
drivers/gpu/drm/amd/amdgpu/amdgpu_pmu.c:51:13: error: no member named 'attr' in 'struct perf_event'
        if (event->attr.type != event->pmu->type)
            ~~~~~  ^
...

Use conditional compilation for this file.

Fixes: 9c7c85f7ea ("drm/amdgpu: add pmu counters")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-07-08 13:56:22 -05:00
..
acp treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
amdgpu amdgpu: make pmu support optional 2019-07-08 13:56:22 -05:00
amdkfd drm/amdkfd: Disable idle optimization for chained runlist 2019-07-03 14:32:10 -05:00
display drm/amdgpu: Use kmemdup rather than duplicating its implementation 2019-07-05 15:54:55 -05:00
include drm/amd/powerplay: make athub pg bit configured by pg_flags 2019-06-25 13:54:32 -05:00
powerplay drm/amd/powerplay: Zero initialize current_rpm in vega20_get_fan_speed_percent 2019-07-08 13:56:18 -05:00