Example #1
0
static void BCMFASTPATH l2x0_inv_range(unsigned long start, unsigned long end)
{
	void __iomem *base = l2x0_base;

	/* Ramge edges could contain live dirty data */
	if( start & (CACHE_LINE_SIZE-1) )
		atomic_flush_line(base, start & ~(CACHE_LINE_SIZE-1));
	if( end & (CACHE_LINE_SIZE-1) )
		atomic_flush_line(base, end & ~(CACHE_LINE_SIZE-1));

	start &= ~(CACHE_LINE_SIZE - 1);

	while (start < end) {
		atomic_inv_line(base, start);
		start += CACHE_LINE_SIZE;
	}
	atomic_cache_sync(base);
}
Example #2
0
static void l2x0_flush_range(unsigned long start, unsigned long end)
{
	void __iomem *base = l2x0_base;

	start &= ~(CACHE_LINE_SIZE - 1);
	while (start < end) {
		atomic_flush_line(base, start);
		start += CACHE_LINE_SIZE;
	}
	atomic_cache_sync(base);
}