Re: [tip:x86/platform] x86/intel/quark: Switch off CR4.PGE so TLB flush uses CR3 instead

From: H. Peter Anvin
Date: Wed Sep 24 2014 - 14:42:50 EST


On 09/24/2014 09:07 AM, Bryan O'Donoghue wrote:
>>
>> So __flush_tlb_all(); will do nothing but that's OK since load_cr3()
>> already flushed the TLB - including any PTE with PGE set
>
> I take your point though.
>
> It's probably better to be explicit and do the whole
>
> if (quark)
> __flush_tlb();
> else
> __flush_tlb_all();
>
> So that we aren't relying on the side effects of the previous statement.
>

Well, we need a comment at least.

-hpa


--
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/