~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to arch/tile/include/asm/pgalloc.h

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
static inline void set_pmd(pmd_t *pmdp, pmd_t pmd)
42
42
{
43
43
#ifdef CONFIG_64BIT
44
 
        set_pte_order(pmdp, pmd, L2_USER_PGTABLE_ORDER);
 
44
        set_pte(pmdp, pmd);
45
45
#else
46
 
        set_pte_order(&pmdp->pud.pgd, pmd.pud.pgd, L2_USER_PGTABLE_ORDER);
 
46
        set_pte(&pmdp->pud.pgd, pmd.pud.pgd);
47
47
#endif
48
48
}
49
49
 
100
100
/* During init, we can shatter kernel huge pages if needed. */
101
101
void shatter_pmd(pmd_t *pmd);
102
102
 
 
103
/* After init, a more complex technique is required. */
 
104
void shatter_huge_page(unsigned long addr);
 
105
 
103
106
#ifdef __tilegx__
104
107
/* We share a single page allocator for both L1 and L2 page tables. */
105
108
#if HV_L1_SIZE != HV_L2_SIZE