drm/i915/perf: remove redundant oa buffer initialization
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 23 Oct 2018 10:07:05 +0000 (11:07 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 23 Oct 2018 14:09:22 +0000 (15:09 +0100)
commit784b1a8435da458f10f3837477ae0a18b579d278
tree0ca7230962f900c8080541e324de1d081ae4bc37
parent816c37159ca2af48352f0cbc90009694bcfcd55b
drm/i915/perf: remove redundant oa buffer initialization

We initialize the OA buffer everytime we enable the OA unit (first call in
gen[78]_oa_enable), so we don't need to initialize when preparing the metric
set.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181023100707.31738-3-lionel.g.landwerlin@intel.com
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_perf.c