Messages in this thread | | | Date | Thu, 23 May 2013 08:06:49 -0700 | From | "H. Peter Anvin" <> | Subject | Re: [PATCH] mm: fix up a spurious page fault whenever it happens |
| |
On 05/23/2013 06:29 AM, Steven Rostedt wrote: > On Thu, 2013-05-23 at 08:19 -0400, Rik van Riel wrote: > >> We can add a bit in the architecture bits that >> we use to check against other CPU and system >> errata, and conditionally flush the whole TLB >> from __native_flush_tlb_single(). > > If we find that some CPUs have issues and others do not, and we can > determine this by checking the CPU type at run time, I would strongly > suggest using the jump_label infrastructure to do the branches. I know > this is early to suggest something like this, but I just wanted to put > it in your head ;-) >
We don't even need the jump_label infrastructure -- we have static_cpu_has*() which actually predates jump_label although it uses the same underlying ideas.
-hpa
| |