| .. | .. |
|---|
| 33 | 33 | return x.pmd; |
|---|
| 34 | 34 | } |
|---|
| 35 | 35 | |
|---|
| 36 | | -/* |
|---|
| 37 | | - * 64 bit hash always use 4 level table. Everybody else use 4 level |
|---|
| 38 | | - * only for 4K page size. |
|---|
| 39 | | - */ |
|---|
| 40 | | -#if defined(CONFIG_PPC_BOOK3S_64) || !defined(CONFIG_PPC_64K_PAGES) |
|---|
| 36 | +/* 64 bit always use 4 level table. */ |
|---|
| 41 | 37 | typedef struct { __be64 pud; } pud_t; |
|---|
| 42 | 38 | #define __pud(x) ((pud_t) { cpu_to_be64(x) }) |
|---|
| 43 | 39 | #define __pud_raw(x) ((pud_t) { (x) }) |
|---|
| .. | .. |
|---|
| 51 | 47 | return x.pud; |
|---|
| 52 | 48 | } |
|---|
| 53 | 49 | |
|---|
| 54 | | -#endif /* CONFIG_PPC_BOOK3S_64 || !CONFIG_PPC_64K_PAGES */ |
|---|
| 55 | 50 | #endif /* CONFIG_PPC64 */ |
|---|
| 56 | 51 | |
|---|
| 57 | 52 | /* PGD level */ |
|---|
| .. | .. |
|---|
| 77 | 72 | * With hash config 64k pages additionally define a bigger "real PTE" type that |
|---|
| 78 | 73 | * gathers the "second half" part of the PTE for pseudo 64k pages |
|---|
| 79 | 74 | */ |
|---|
| 80 | | -#if defined(CONFIG_PPC_64K_PAGES) && defined(CONFIG_PPC_BOOK3S_64) |
|---|
| 75 | +#ifdef CONFIG_PPC_64K_PAGES |
|---|
| 81 | 76 | typedef struct { pte_t pte; unsigned long hidx; } real_pte_t; |
|---|
| 82 | 77 | #else |
|---|
| 83 | 78 | typedef struct { pte_t pte; } real_pte_t; |
|---|