summaryrefslogtreecommitdiffstats
path: root/include/asm-sh/pgalloc-2level.h
blob: a9c9fddc473ef2de0d12c14e70b3ca7cc9b8d492 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef __ASM_SH_PGALLOC_2LEVEL_H
#define __ASM_SH_PGALLOC_2LEVEL_H

/*
 * traditional two-level paging, page table allocation routines:
 */

static __inline__ pmd_t *get_pmd_fast(void)
{
	return (pmd_t *)0;
}

static __inline__ void free_pmd_fast(pmd_t *pmd) { }
static __inline__ void free_pmd_slow(pmd_t *pmd) { }

static __inline__ pmd_t * pmd_alloc(pgd_t *pgd, unsigned long address)
{
	if (!pgd)
		BUG();
	return (pmd_t *) pgd;
}

#endif /* __ASM_SH_PGALLOC_2LEVEL_H */