]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: sseu: Move sseu_dev_status to i915_drv.h
authorImre Deak <imre.deak@intel.com>
Wed, 31 Aug 2016 16:13:01 +0000 (19:13 +0300)
committerImre Deak <imre.deak@intel.com>
Fri, 2 Sep 2016 15:12:30 +0000 (18:12 +0300)
commit6de24f5e82e0535aa7fe6541bac1463eeab86a5a
treece4b7413fa92f39e7f91699f23cd5f37e1d76568
parent684271dafebcfb519a85c2f3861f73a2f270d1fc
drm/i915: sseu: Move sseu_dev_status to i915_drv.h

The data in this struct is provided both by getting the
slice/subslice/eu features available on a given platform and the actual
runtime state of these same features which depends on the HW's current
power saving state.

Atm members of this struct are duplicated in sseu_dev_status and
intel_device_info. For clarity and code reuse we can share one struct
for both of the above purposes. This patch only moves the struct to the
header file, the next patch will convert users of intel_device_info to
use this struct too.

Instead of unsigned int u8 is used now, which is big enough and is used
anyway in intel_device_info.

No functional change.

v2:
- s/stat/sseu/ based on the new struct name (Ben)

Reviewed-by: Robert Bragg <robert@sixbynine.org> (v1)
Reviewed-by: Ben Widawsky <benjamin.widawsky@intel.com> (v1)
Tested-by: Ben Widawsky <benjamin.widawsky@intel.com> (v1)
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1472659987-10417-2-git-send-email-imre.deak@intel.com
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/i915_drv.h