drm/i915/perf: simplify OA unit enabling on gen7
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Mon, 26 Mar 2018 09:08:23 +0000 (10:08 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 29 Mar 2018 12:33:25 +0000 (13:33 +0100)
commit11051303344bd4b3334a7b456f6152f4d6032c61
treed333b5b16cbb7aa3bb964c1918ec89f9346d5666
parentb6dd47b9c82d619195370c38b7579fe18a8f6055
drm/i915/perf: simplify OA unit enabling on gen7

In commit d79651522e89c ("drm/i915: Enable i915 perf stream for
Haswell OA unit") the enable/disable vfunc hadn't appear yet and the
same function would deal with enabling/disabling the OA unit.

This was split later on for gen8 but the gen7 retained some code that
isn't actually useful anymore.

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/20180326090831.22686-4-lionel.g.landwerlin@intel.com
drivers/gpu/drm/i915/i915_perf.c