]> pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
x86: align to clflush size
authorGlauber Costa <gcosta@redhat.com>
Tue, 25 Mar 2008 21:36:35 +0000 (18:36 -0300)
committerIngo Molnar <mingo@elte.hu>
Sat, 19 Apr 2008 17:19:56 +0000 (19:19 +0200)
Do it instead of using the conservative approach we're currently
doing. This is the way x86_64 does, and this patch makes this piece
of code the same between them, ready to be integrated.

Signed-off-by: Glauber Costa <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/asm-x86/dma-mapping_32.h

index fd7246dddad4729ddf6f2696cada9eded99f8169..d0512c9251b796017cfce8d8c7d568dc35d590a7 100644 (file)
@@ -21,7 +21,7 @@ dma_get_cache_alignment(void)
 {
        /* no easy way to get cache size on all x86, so return the
         * maximum possible, to be safe */
-       return (1 << INTERNODE_CACHE_SHIFT);
+       return boot_cpu_data.x86_clflush_size;
 }
 
 #define dma_is_consistent(d, h)        (1)