Re: [PATCH v2] X86: don't report PAT on CPUs that don't support it

From: Bernhard Held
Date: Wed Jun 07 2017 - 15:57:32 EST


On 06/07/2017 at 12:49 AM, Mikulas Patocka wrote:
Hi

Here I send the second version of the patch. It drops the change from
boot_cpu_has(X86_FEATURE_PAT) to this_cpu_has(X86_FEATURE_PAT) (that
caused kernel to be unbootable for some people).

Another change is that setup_arch() calls init_cache_modes() if PAT is
disabled, so that init_cache_modes() is always called.

Mikulas

[PATCH v2] Works for me!

CHeers,
Bernhard