Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 80496
b: refs/heads/master
c: e4b71dc
h: refs/heads/master
v: v3
  • Loading branch information
Ingo Molnar committed Jan 30, 2008
1 parent 3ff01cc commit 2355672
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4554ab95c2b9d6b0ee9cf2a7ed3df665422acebb
refs/heads/master: e4b71dcf54fa90fc30fb901bbce7e38a46467af7
13 changes: 5 additions & 8 deletions trunk/arch/x86/mm/pageattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
* Copyright 2002 Andi Kleen, SuSE Labs.
* Thanks to Ben LaHaise for precious feedback.
*/

#include <linux/highmem.h>
#include <linux/module.h>
#include <linux/sched.h>
Expand Down Expand Up @@ -50,9 +49,7 @@ static void __set_pmd_pte(pte_t *kpte, unsigned long address, pte_t pte)
/* change init_mm */
set_pte_atomic(kpte, pte);
#ifdef CONFIG_X86_32
if (SHARED_KERNEL_PMD)
return;
{
if (!SHARED_KERNEL_PMD) {
struct page *page;

for (page = pgd_list; page; page = (struct page *)page->index) {
Expand Down Expand Up @@ -277,14 +274,14 @@ void kernel_map_pages(struct page *page, int numpages, int enable)
return;

/*
* the return value is ignored - the calls cannot fail,
* large pages are disabled at boot time.
* The return value is ignored - the calls cannot fail,
* large pages are disabled at boot time:
*/
change_page_attr(page, numpages, enable ? PAGE_KERNEL : __pgprot(0));

/*
* we should perform an IPI and flush all tlbs,
* but that can deadlock->flush only current cpu.
* We should perform an IPI and flush all tlbs,
* but that can deadlock->flush only current cpu:
*/
__flush_tlb_all();
}
Expand Down
2 changes: 2 additions & 0 deletions trunk/include/asm-x86/pgtable_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ extern void clear_kernel_mapping(unsigned long addr, unsigned long size);

#endif /* !__ASSEMBLY__ */

#define SHARED_KERNEL_PMD 1

/*
* PGDIR_SHIFT determines what a top-level page table entry can map
*/
Expand Down

0 comments on commit 2355672

Please sign in to comment.