diff options
author | Arjan van de Ven <arjan@infradead.org> | 2008-01-30 07:34:06 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:34:06 -0500 |
commit | 6d238cc4dc8a36a3915c26202fe49f58a0683fb9 (patch) | |
tree | f17d1b7d27ab48ba3b5f998a8a286c198b052ce2 /sound/pci/intel8x0.c | |
parent | 75cbade8ea3127a84e3da7c2c15808e54f0df7e8 (diff) |
x86: convert CPA users to the new set_page_ API
This patch converts various users of change_page_attr() to the new,
more intent driven set_page_*/set_memory_* API set.
Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'sound/pci/intel8x0.c')
-rw-r--r-- | sound/pci/intel8x0.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sound/pci/intel8x0.c b/sound/pci/intel8x0.c index b4a38a3d855b..e5650905296e 100644 --- a/sound/pci/intel8x0.c +++ b/sound/pci/intel8x0.c | |||
@@ -711,11 +711,14 @@ static void snd_intel8x0_setup_periods(struct intel8x0 *chip, struct ichdev *ich | |||
711 | static void fill_nocache(void *buf, int size, int nocache) | 711 | static void fill_nocache(void *buf, int size, int nocache) |
712 | { | 712 | { |
713 | size = (size + PAGE_SIZE - 1) >> PAGE_SHIFT; | 713 | size = (size + PAGE_SIZE - 1) >> PAGE_SHIFT; |
714 | change_page_attr(virt_to_page(buf), size, nocache ? PAGE_KERNEL_NOCACHE : PAGE_KERNEL); | 714 | if (nocache) |
715 | set_pages_uc(virt_to_page(buf), size); | ||
716 | else | ||
717 | set_pages_wb(virt_to_page(buf), size); | ||
715 | global_flush_tlb(); | 718 | global_flush_tlb(); |
716 | } | 719 | } |
717 | #else | 720 | #else |
718 | #define fill_nocache(buf,size,nocache) | 721 | #define fill_nocache(buf, size, nocache) do { ; } while (0) |
719 | #endif | 722 | #endif |
720 | 723 | ||
721 | /* | 724 | /* |