patch-2.4.21 linux-2.4.21/arch/x86_64/mm/pageattr.c
Next file: linux-2.4.21/arch/x86_64/vmlinux.lds
Previous file: linux-2.4.21/arch/x86_64/mm/numa.c
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
2003-06-13 07:51:32.000000000 -0700
- Orig file:
linux-2.4.20/arch/x86_64/mm/pageattr.c
- Orig date:
2002-11-28 15:53:12.000000000 -0800
diff -urN linux-2.4.20/arch/x86_64/mm/pageattr.c linux-2.4.21/arch/x86_64/mm/pageattr.c
@@ -48,18 +48,17 @@
{
struct cpuinfo_x86 *cpu = &cpu_data[smp_processor_id()];
wmb();
- /* Disabled for now because there seem to be some problems with CLFLUSH */
if (0 && test_bit(X86_FEATURE_CLFLSH, &cpu->x86_capability)) {
/* is this worth it? */
int i;
for (i = 0; i < PAGE_SIZE; i += cpu->x86_clflush_size)
- asm volatile("clflush %0" :: "m" (__pa(address) + i));
+ asm volatile("clflush %0" :: "m" (address + i));
} else
asm volatile("wbinvd":::"memory");
__flush_tlb_one(address);
}
-/* no more special protections in this 2/4MB area - revert to a
+/* no more special protections in this 2MB area - revert to a
large page again. */
static inline void revert_page(struct page *kpte_page, unsigned long address)
{
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)