Skip to content

Commit

Permalink
x86: kill mk_pte_huge
Browse files Browse the repository at this point in the history
It only has a single use, which can be trivially replaced.

Signed-off-by: Jeremy Fitzhardinge <Jeremy.Fitzhardinge@citrix.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Jeremy Fitzhardinge authored and Ingo Molnar committed Jan 30, 2008
1 parent 5fd1fe9 commit 27ec161
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions arch/x86/mm/init_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -742,8 +742,7 @@ int __meminit vmemmap_populate(struct page *start_page,
if (!p)
return -ENOMEM;

entry = pfn_pte(__pa(p) >> PAGE_SHIFT, PAGE_KERNEL);
mk_pte_huge(entry);
entry = pfn_pte(__pa(p) >> PAGE_SHIFT, PAGE_KERNEL_LARGE);
set_pmd(pmd, __pmd(pte_val(entry)));

printk(KERN_DEBUG " [%lx-%lx] PMD ->%p on node %d\n",
Expand Down
1 change: 0 additions & 1 deletion include/asm-x86/pgtable_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,6 @@ static inline int pmd_large(pmd_t pte) {

/* page, protection -> pte */
#define mk_pte(page, pgprot) pfn_pte(page_to_pfn(page), (pgprot))
#define mk_pte_huge(entry) (pte_val(entry) |= _PAGE_PRESENT | _PAGE_PSE)

/* Change flags of a PTE */
static inline pte_t pte_modify(pte_t pte, pgprot_t newprot)
Expand Down

0 comments on commit 27ec161

Please sign in to comment.