summaryrefslogtreecommitdiffstats
path: root/include/asm-ppc64/abs_addr.h
diff options
context:
space:
mode:
authorMichael Ellerman2005-08-03 12:21:24 +0200
committerPaul Mackerras2005-08-29 02:53:36 +0200
commitaefd16b0c5a594b5feaba23954ad74061f45c8a5 (patch)
tree64c52d1e3f1ce58b178561f6d5815887b37a81ba /include/asm-ppc64/abs_addr.h
parent[PATCH] ppc64: Consolidate some macros (diff)
downloadkernel-qcow2-linux-aefd16b0c5a594b5feaba23954ad74061f45c8a5.tar.gz
kernel-qcow2-linux-aefd16b0c5a594b5feaba23954ad74061f45c8a5.tar.xz
kernel-qcow2-linux-aefd16b0c5a594b5feaba23954ad74061f45c8a5.zip
[PATCH] ppc64: Remove redundant uses of physRpn_to_absRpn
physRpn_to_absRpn is a no-op on non-iSeries platforms, remove the two redundant calls. There's only one caller on iSeries so fold the logic in there so we can get rid of it completely. Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-ppc64/abs_addr.h')
-rw-r--r--include/asm-ppc64/abs_addr.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/include/asm-ppc64/abs_addr.h b/include/asm-ppc64/abs_addr.h
index 025527742fef..ab4320c1cf5b 100644
--- a/include/asm-ppc64/abs_addr.h
+++ b/include/asm-ppc64/abs_addr.h
@@ -56,14 +56,6 @@ static inline unsigned long phys_to_abs(unsigned long pa)
return chunk_to_addr(chunk) + (pa & MSCHUNKS_OFFSET_MASK);
}
-static inline unsigned long
-physRpn_to_absRpn(unsigned long rpn)
-{
- unsigned long pa = rpn << PAGE_SHIFT;
- unsigned long aa = phys_to_abs(pa);
- return (aa >> PAGE_SHIFT);
-}
-
/* A macro so it can take pointers or unsigned long. */
#define abs_to_phys(aa) lmb_abs_to_phys((unsigned long)(aa))