Re: why change_page_attr on x86 uses __flush_tlb_all

From: Andi Kleen
Date: Thu Apr 15 2004 - 08:52:51 EST


Nagendra Singh Tomar <nagendra_tomar@xxxxxxxxxxx> writes:

> I would expect __flush_tlb_one (for each page) as a better choice.
> It'll be nice if someone can hoghlight on why __flush_tlb_all is used.
> The kernel version I am referring from is 2.4.18-14

This works around a bug in some early Athlons with flushing global
large pages. Also it makes the code slightly simpler and change_page_attr
is not really performance critical.

-Andi

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