x86: PAT: fix ambiguous paranoia check in pat_init()
commit97cfab6ac4ddfda0d722393bbf46cc40bc332107
authorAndreas Herrmann <andreas.herrmann3@amd.com>
Tue, 10 Jun 2008 14:05:18 +0000 (10 16:05 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 12 Jun 2008 08:14:22 +0000 (12 10:14 +0200)
tree699f95483b968bfad891bca59ad46f74949543bc
parentee863ba7ab3d3ed8a9585d378aae69d1e3e9f1b4
x86: PAT: fix ambiguous paranoia check in pat_init()

Starting with commit 8d4a4300854f3971502e81dacd930704cb88f606 (x86:
cleanup PAT cpu validation) the PAT CPU feature flag is not cleared
anymore. Now the error message

  "PAT enabled, but CPU feature cleared"

in pat_init() is misleading.

Furthermore the current code does not check for existence of the PAT
CPU feature flag if a CPU is whitelisted in validate_pat_support.

This patch clears pat_wc_enabled if boot CPU has no PAT feature flag
and adapts the paranoia check.

Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/addon_cpuid_features.c
arch/x86/mm/pat.c