Re: [PATCH][2.5] replace flush_map() in arch/i386/mm/pageattr.c

Andrew Morton (akpm@digeo.com)
Thu, 20 Feb 2003 12:20:17 -0800


Thomas Schlichter <schlicht@uni-mannheim.de> wrote:
>
> This patch replaces the flush_map() function in the arch/i386/mm/pageattr.c
> file with flush_tlb_all() calls, as the flush_map() function wants to do
> the same, but just forgot the preempt_disable() and preempt_enable() calls.
>

flush_map() is doing a wbinvd:

> -static void flush_kernel_map(void *dummy)
> -{
> - /* Could use CLFLUSH here if the CPU supports it (Hammer,P4) */
> - if (boot_cpu_data.x86_model >= 4)
> - asm volatile("wbinvd":::"memory");

It appears that by replacing flush_map() with flush_tlb_all(), you are no
longer doing this?

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/