Skip to content

Commit

Permalink
x86: align to clflush size
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Glauber Costa authored and Ingo Molnar committed Apr 19, 2008
1 parent 802c1f6 commit b48ee71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/asm-x86/dma-mapping_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b48ee71

Please sign in to comment.