summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorDave Hansen <dave@linux.vnet.ibm.com>2008-12-09 08:21:35 +0000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2009-01-08 16:25:08 +1100
commit0be210fd664b07531cb238bafb453a2a54c2a7a8 (patch)
tree61073a774c49b49acd2cbb40b09b52a32fe88cd6 /usr
parent5d21ea2b0e1d9d5d880670dbb9a96efe9b419583 (diff)
downloadtalos-obmc-linux-0be210fd664b07531cb238bafb453a2a54c2a7a8.tar.gz
talos-obmc-linux-0be210fd664b07531cb238bafb453a2a54c2a7a8.zip
powerpc/mm: Make careful_allocation() return virtual addrs
Since we memset() the result in both of the uses here, just make careful_alloc() return a virtual address. Also, add a separate variable to store the physial address that comes back from the lmb_alloc() functions. This makes it less likely that someone will screw it up forgetting to convert before returning since the vaddr is always in a void* and the paddr is always in an unsigned long. I admit this is arbitrary since one of its users needs a paddr and one a vaddr, but it does remove a good number of casts. Signed-off-by: Dave Hansen <dave@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud