mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
parent
75cbade8ea
commit
6d238cc4dc
8 changed files with 29 additions and 38 deletions
|
|
@ -88,9 +88,7 @@ static int vmlfb_alloc_vram_area(struct vram_area *va, unsigned max_order,
|
|||
{
|
||||
gfp_t flags;
|
||||
unsigned long i;
|
||||
pgprot_t wc_pageprot;
|
||||
|
||||
wc_pageprot = PAGE_KERNEL_NOCACHE;
|
||||
max_order++;
|
||||
do {
|
||||
/*
|
||||
|
|
@ -131,8 +129,7 @@ static int vmlfb_alloc_vram_area(struct vram_area *va, unsigned max_order,
|
|||
*/
|
||||
|
||||
global_flush_tlb();
|
||||
change_page_attr(virt_to_page(va->logical), va->size >> PAGE_SHIFT,
|
||||
wc_pageprot);
|
||||
set_pages_uc(virt_to_page(va->logical), va->size >> PAGE_SHIFT);
|
||||
global_flush_tlb();
|
||||
|
||||
printk(KERN_DEBUG MODULE_NAME
|
||||
|
|
@ -157,8 +154,8 @@ static void vmlfb_free_vram_area(struct vram_area *va)
|
|||
* Reset the linear kernel map caching policy.
|
||||
*/
|
||||
|
||||
change_page_attr(virt_to_page(va->logical),
|
||||
va->size >> PAGE_SHIFT, PAGE_KERNEL);
|
||||
set_pages_wb(virt_to_page(va->logical),
|
||||
va->size >> PAGE_SHIFT);
|
||||
global_flush_tlb();
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue