/* Clean all caches promptly. This just calls cache_clean repeatedly until we are sure that every cache has had a chance to be fully cleaned  */
void cache_flush(void)
/* Clean all caches promptly. This just calls cache_clean repeatedly until we are sure that every cache has had a chance to be fully cleaned  */
void cache_flush(void)
{
	while (cache_clean() != -1)
		cond_resched();
	while (cache_clean() != -1)
		cond_resched();
}