]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/pci/intel8x0.c
x86: convert CPA users to the new set_page_ API
[linux-2.6-omap-h63xx.git] / sound / pci / intel8x0.c
index b4a38a3d855bc89d46ad11ec2e7f80f030ad7c3f..e5650905296ee34026705311e845977cb3dfe2c0 100644 (file)
@@ -711,11 +711,14 @@ static void snd_intel8x0_setup_periods(struct intel8x0 *chip, struct ichdev *ich
 static void fill_nocache(void *buf, int size, int nocache)
 {
        size = (size + PAGE_SIZE - 1) >> PAGE_SHIFT;
-       change_page_attr(virt_to_page(buf), size, nocache ? PAGE_KERNEL_NOCACHE : PAGE_KERNEL);
+       if (nocache)
+               set_pages_uc(virt_to_page(buf), size);
+       else
+               set_pages_wb(virt_to_page(buf), size);
        global_flush_tlb();
 }
 #else
-#define fill_nocache(buf,size,nocache)
+#define fill_nocache(buf, size, nocache) do { ; } while (0)
 #endif
 
 /*