/* Routines to disable and re-enable the D-cache and I-cache at run time. These are necessary because the L2 cache can only be enabled or disabled while the L1 Dcache and Icache are both disabled.  */
static int __init flush_and_disable_dcache(void)
/* Routines to disable and re-enable the D-cache and I-cache at run time. These are necessary because the L2 cache can only be enabled or disabled while the L1 Dcache and Icache are both disabled.  */
static int __init flush_and_disable_dcache(void)
{
	u32 cr;
	cr = get_cr();
	if (cr & CR_C) {
		unsigned long flags;
		raw_local_irq_save(flags);
		flush_cache_all();
		set_cr(cr & ~CR_C);
		raw_local_irq_restore(flags);
		return 1;
	}
	return 0;
}