OSDN Git Service

drm/i915: replace X86_FEATURE_PAT with pat_enabled()
authorLucas De Marchi <lucas.demarchi@intel.com>
Thu, 2 Dec 2021 00:30:48 +0000 (16:30 -0800)
committerLucas De Marchi <lucas.demarchi@intel.com>
Tue, 14 Dec 2021 23:29:12 +0000 (15:29 -0800)
commitbdd8b6c98239cad3a976d6f197afc2c794d3cef8
tree720a68431bb5553af06069187de655d5bea0ac65
parent1b9e8b1feb33d75bf942a174719a861815fa7279
drm/i915: replace X86_FEATURE_PAT with pat_enabled()

PAT can be disabled on boot with "nopat" in the command line. Replace
one x86-ism with another, which is slightly more correct to prepare for
supporting other architectures.

Cc: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211202003048.1015511-1-lucas.demarchi@intel.com
drivers/gpu/drm/i915/gem/i915_gem_mman.c
drivers/gpu/drm/i915/gem/i915_gem_pages.c