lkml.org 
[lkml]   [2008]   [May]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] x86: introduce a new Linux defined feature flag for PAT support
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.


\
 
 \ /
  Last update: 2008-05-08 04:19    [W:0.126 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site