]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitef97067e4a1a1b4bb861e32f62a67babef671ffa
tree720a68431bb5553af06069187de655d5bea0ac65
parent63ce36d280cdf1cd17eb059920d21b48fa23ca1b
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