]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gem: Make caps.scheduler static
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 6 Aug 2019 12:42:59 +0000 (13:42 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 6 Aug 2019 14:00:14 +0000 (15:00 +0100)
commit33432afb66360de8202a608d1a80e289d3b10297
treeeaca421c39e0fca04dd0107bf2c1a82483ab54f8
parent3810fa8f20e065646e9954882a86c6f8ab607ffb
drm/i915/gem: Make caps.scheduler static

We do not notify userspace when the scheduler capabilities are changed
(due to wedging the driver) and as such userspace will expect the caps
to be static and unchanging. Make it so, and so we only need to compute
our caps once during driver registration.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190806124300.24945-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_shrinker.c
drivers/gpu/drm/i915/gem/selftests/i915_gem_mman.c
drivers/gpu/drm/i915/gt/intel_reset.c
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_request.c