diff options
Diffstat (limited to 'arch/ppc64/kernel/lmb.c')
-rw-r--r-- | arch/ppc64/kernel/lmb.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/arch/ppc64/kernel/lmb.c b/arch/ppc64/kernel/lmb.c index 6cb275615fc4..111da736652b 100644 --- a/arch/ppc64/kernel/lmb.c +++ b/arch/ppc64/kernel/lmb.c | |||
@@ -313,25 +313,6 @@ lmb_end_of_DRAM(void) | |||
313 | return 0; | 313 | return 0; |
314 | } | 314 | } |
315 | 315 | ||
316 | unsigned long __init | ||
317 | lmb_abs_to_phys(unsigned long aa) | ||
318 | { | ||
319 | unsigned long i, pa = aa; | ||
320 | struct lmb *_lmb = &lmb; | ||
321 | struct lmb_region *_mem = &(_lmb->memory); | ||
322 | |||
323 | for (i=0; i < _mem->cnt; i++) { | ||
324 | unsigned long lmbbase = _mem->region[i].base; | ||
325 | unsigned long lmbsize = _mem->region[i].size; | ||
326 | if ( lmb_addrs_overlap(aa,1,lmbbase,lmbsize) ) { | ||
327 | pa = _mem->region[i].physbase + (aa - lmbbase); | ||
328 | break; | ||
329 | } | ||
330 | } | ||
331 | |||
332 | return pa; | ||
333 | } | ||
334 | |||
335 | /* | 316 | /* |
336 | * Truncate the lmb list to memory_limit if it's set | 317 | * Truncate the lmb list to memory_limit if it's set |
337 | * You must call lmb_analyze() after this. | 318 | * You must call lmb_analyze() after this. |