diff options
Diffstat (limited to 'arch/powerpc/mm/hash_utils_64.c')
| -rw-r--r-- | arch/powerpc/mm/hash_utils_64.c | 34 |
1 files changed, 6 insertions, 28 deletions
diff --git a/arch/powerpc/mm/hash_utils_64.c b/arch/powerpc/mm/hash_utils_64.c index 9cefe6a7aeb1..3cc6d68f7117 100644 --- a/arch/powerpc/mm/hash_utils_64.c +++ b/arch/powerpc/mm/hash_utils_64.c | |||
| @@ -167,34 +167,12 @@ int htab_bolt_mapping(unsigned long vstart, unsigned long vend, | |||
| 167 | hash = hpt_hash(va, shift); | 167 | hash = hpt_hash(va, shift); |
| 168 | hpteg = ((hash & htab_hash_mask) * HPTES_PER_GROUP); | 168 | hpteg = ((hash & htab_hash_mask) * HPTES_PER_GROUP); |
| 169 | 169 | ||
| 170 | /* The crap below can be cleaned once ppd_md.probe() can | 170 | DBG("htab_bolt_mapping: calling %p\n", ppc_md.hpte_insert); |
| 171 | * set up the hash callbacks, thus we can just used the | 171 | |
| 172 | * normal insert callback here. | 172 | BUG_ON(!ppc_md.hpte_insert); |
| 173 | */ | 173 | ret = ppc_md.hpte_insert(hpteg, va, paddr, |
| 174 | #ifdef CONFIG_PPC_ISERIES | 174 | tmp_mode, HPTE_V_BOLTED, psize); |
| 175 | if (machine_is(iseries)) | 175 | |
| 176 | ret = iSeries_hpte_insert(hpteg, va, | ||
| 177 | paddr, | ||
| 178 | tmp_mode, | ||
| 179 | HPTE_V_BOLTED, | ||
| 180 | psize); | ||
| 181 | else | ||
| 182 | #endif | ||
| 183 | #ifdef CONFIG_PPC_PSERIES | ||
| 184 | if (machine_is(pseries) && firmware_has_feature(FW_FEATURE_LPAR)) | ||
| 185 | ret = pSeries_lpar_hpte_insert(hpteg, va, | ||
| 186 | paddr, | ||
| 187 | tmp_mode, | ||
| 188 | HPTE_V_BOLTED, | ||
| 189 | psize); | ||
| 190 | else | ||
| 191 | #endif | ||
| 192 | #ifdef CONFIG_PPC_MULTIPLATFORM | ||
| 193 | ret = native_hpte_insert(hpteg, va, | ||
| 194 | paddr, | ||
| 195 | tmp_mode, HPTE_V_BOLTED, | ||
| 196 | psize); | ||
| 197 | #endif | ||
| 198 | if (ret < 0) | 176 | if (ret < 0) |
| 199 | break; | 177 | break; |
| 200 | } | 178 | } |
