aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel
diff options
context:
space:
mode:
authorArjan van de Ven <arjan@infradead.org>2008-01-30 07:34:06 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-30 07:34:06 -0500
commit6d238cc4dc8a36a3915c26202fe49f58a0683fb9 (patch)
treef17d1b7d27ab48ba3b5f998a8a286c198b052ce2 /arch/x86/kernel
parent75cbade8ea3127a84e3da7c2c15808e54f0df7e8 (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 'arch/x86/kernel')
-rw-r--r--arch/x86/kernel/efi.c8
-rw-r--r--arch/x86/kernel/pci-gart_64.c3
2 files changed, 5 insertions, 6 deletions
diff --git a/arch/x86/kernel/efi.c b/arch/x86/kernel/efi.c
index 57b57778bf60..a70fe77354b8 100644
--- a/arch/x86/kernel/efi.c
+++ b/arch/x86/kernel/efi.c
@@ -396,10 +396,10 @@ static void __init runtime_code_page_mkexec(void)
396 md = p; 396 md = p;
397 end = md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT); 397 end = md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT);
398 if (md->type == EFI_RUNTIME_SERVICES_CODE && 398 if (md->type == EFI_RUNTIME_SERVICES_CODE &&
399 (end >> PAGE_SHIFT) <= max_pfn_mapped) 399 (end >> PAGE_SHIFT) <= max_pfn_mapped) {
400 change_page_attr_addr(md->virt_addr, 400 set_memory_x(md->virt_addr, md->num_pages);
401 md->num_pages, 401 set_memory_uc(md->virt_addr, md->num_pages);
402 PAGE_KERNEL_EXEC_NOCACHE); 402 }
403 } 403 }
404 __flush_tlb_all(); 404 __flush_tlb_all();
405} 405}
diff --git a/arch/x86/kernel/pci-gart_64.c b/arch/x86/kernel/pci-gart_64.c
index 04ca5c5221d7..8860c6eba8ab 100644
--- a/arch/x86/kernel/pci-gart_64.c
+++ b/arch/x86/kernel/pci-gart_64.c
@@ -570,8 +570,7 @@ static __init int init_k8_gatt(struct agp_kern_info *info)
570 gatt = (void *)__get_free_pages(GFP_KERNEL, get_order(gatt_size)); 570 gatt = (void *)__get_free_pages(GFP_KERNEL, get_order(gatt_size));
571 if (!gatt) 571 if (!gatt)
572 panic("Cannot allocate GATT table"); 572 panic("Cannot allocate GATT table");
573 if (change_page_attr_addr((unsigned long)gatt, gatt_size >> PAGE_SHIFT, 573 if (set_memory_uc((unsigned long)gatt, gatt_size >> PAGE_SHIFT))
574 PAGE_KERNEL_NOCACHE))
575 panic("Could not set GART PTEs to uncacheable pages"); 574 panic("Could not set GART PTEs to uncacheable pages");
576 global_flush_tlb(); 575 global_flush_tlb();
577 576