Re: [PATCH] x86: introduce a new Linux defined feature flag for PATsupport
From: Rene Herman
Date: Wed May 07 2008 - 22:17:39 EST
On 08-05-08 04:11, H. Peter Anvin wrote:
Indeed it wasn't, and at least I have no interest of maintaining what is
in effect an in-kernel version of x86info(1).
*Certainly* I don't want anything like this crap:
diff --git a/arch/x86/mm/pat.c b/arch/x86/mm/pat.c
index 277446c..6ee3efb 100644
--- a/arch/x86/mm/pat.c
+++ b/arch/x86/mm/pat.c
@@ -43,7 +43,7 @@ static int pat_known_cpu(void)
if (!pat_wc_enabled)
return 0;
- if (cpu_has_pat)
+ if (cpu_has_pat && cpu_has_pat_good)
return 1;
if (cpu_has_pat_good) would have been the exact same as now. Feel free
to drop the cpu_has_pat one but it's not crap. That whitelist thing
checks nothing -- and things like CONSTANT_TSC also don't, so I didn't
make the feature itself conditional. It has but one call site anyway.
Rene.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/