drm/i915/perf: refactor perf setup
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 10 Nov 2017 19:08:41 +0000 (19:08 +0000)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Mon, 13 Nov 2017 15:59:14 +0000 (15:59 +0000)
commitba6b7c1ab26f223dd9b19c73df7813e944444d36
treee86a1a7944984cac41db5c0f480878a8112bfe01
parent4407eaa9b0ccbc55408884475301f02280aec402
drm/i915/perf: refactor perf setup

Gen8/9 aren't very different and we can merge some of this code.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171110190845.32574-4-lionel.g.landwerlin@intel.com
drivers/gpu/drm/i915/i915_perf.c