+int set_memory_uc_noflush(unsigned long addr, int numpages)
+{
+ int flush;
+ /*
+ * for now UC MINUS. see comments in ioremap_nocache()
+ */
+ if (reserve_memtype(addr, addr + numpages * PAGE_SIZE,
+ _PAGE_CACHE_UC_MINUS, NULL))
+ return -EINVAL;
+ /*
+ * for now UC MINUS. see comments in ioremap_nocache()
+ */
+ return do_change_page_attr_set_clr(addr, numpages,
+ __pgprot(_PAGE_CACHE_UC_MINUS),
+ __pgprot(0), 0, &flush);
+}
+EXPORT_SYMBOL(set_memory_uc_noflush);
+
+void set_memory_flush_all(void)
+{
+ cpa_flush_all(1);
+}
+EXPORT_SYMBOL(set_memory_flush_all);
+