]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915/vrr: Check HAS_VRR() first in intel_vrr_is_capable()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 20 Oct 2025 18:50:38 +0000 (21:50 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 24 Oct 2025 21:10:58 +0000 (00:10 +0300)
commit4b274b0b61ab2a529e5c22e9aa033f3028e639fc
tree6e2d3a30c5d2336f618f554b8fb905b1cd0e437d
parentbe5fc552b3dd0fe8fbe6231ed754be207b5df890
drm/i915/vrr: Check HAS_VRR() first in intel_vrr_is_capable()

There's no point in doing all the other checks in
intel_vrr_is_capable() if the platform doesn't support VRR at all
Check HAS_VRR() before wasting time on the other checks.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20251020185038.4272-23-ville.syrjala@linux.intel.com
Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
drivers/gpu/drm/i915/display/intel_vrr.c