From: Glauber Costa Date: Tue, 25 Mar 2008 21:36:35 +0000 (-0300) Subject: x86: align to clflush size X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b48ee7135230ac43b6820d59a784ac0bd51ae552;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git x86: align to clflush size 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 Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- diff --git a/include/asm-x86/dma-mapping_32.h b/include/asm-x86/dma-mapping_32.h index fd7246dddad..d0512c9251b 100644 --- a/include/asm-x86/dma-mapping_32.h +++ b/include/asm-x86/dma-mapping_32.h @@ -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)