summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGlauber Costa2008-03-25 22:36:35 +0100
committerIngo Molnar2008-04-19 19:19:56 +0200
commitb48ee7135230ac43b6820d59a784ac0bd51ae552 (patch)
treedfe39b19ba7b86b85df61eba1bfd8ed33eaf3eb8 /include
parentx86: move dma_supported and dma_set_mask to pci-dma_32.c (diff)
downloadkernel-qcow2-linux-b48ee7135230ac43b6820d59a784ac0bd51ae552.tar.gz
kernel-qcow2-linux-b48ee7135230ac43b6820d59a784ac0bd51ae552.tar.xz
kernel-qcow2-linux-b48ee7135230ac43b6820d59a784ac0bd51ae552.zip
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 <gcosta@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/asm-x86/dma-mapping_32.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-x86/dma-mapping_32.h b/include/asm-x86/dma-mapping_32.h
index fd7246dddad4..d0512c9251b7 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)