summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/intel_lvds.c
diff options
context:
space:
mode:
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>2016-05-10 12:57:04 +0300
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>2016-05-11 14:27:27 +0300
commitae5702d245c2328f1b4afa4ae7d39792a8064d48 (patch)
treeaf256c3c4d8059deb41a50ace3b231d6ec9c37ef /drivers/gpu/drm/i915/intel_lvds.c
parentdc97997a21fe1708fc93021baa4ba90db7a3b57f (diff)
downloadlinux-ae5702d245c2328f1b4afa4ae7d39792a8064d48.tar.xz
drm/i915: Make IS_GENx macros work on a mask
If instead of numerical comparison me make these test a bitmask, we enable the compiler to optimize all instances of IS_GENx || IS_GENy. v2: Make bit zero of gen mask mean gen 1. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_lvds.c')
0 files changed, 0 insertions, 0 deletions