android_kernel_xiaomi_sdm845/arch/powerpc
Dave Hansen 0be210fd66 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>
2009-01-08 16:25:08 +11:00
..
boot Merge commit 'origin/master' into next 2009-01-08 16:24:38 +11:00
configs powerpc/85xx: Add SMP support to MPC8572 DS 2008-12-30 11:30:42 -06:00
include/asm Merge commit 'origin/master' into next 2009-01-08 16:24:38 +11:00
kernel powerpc/pci: Reserve legacy regions on PCI 2009-01-08 16:25:07 +11:00
kvm KVM: Consolidate userspace memory capability reporting into common code 2008-12-31 16:55:46 +02:00
lib Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc 2008-12-28 16:54:33 -08:00
math-emu powerpc: Add SPE/EFP math emulation for E500v1/v2 processors. 2008-12-03 08:19:16 -06:00
mm powerpc/mm: Make careful_allocation() return virtual addrs 2009-01-08 16:25:08 +11:00
oprofile trivial: fix then -> than typos in comments and documentation 2009-01-06 11:28:06 +01:00
platforms powerpc/powermac: Add missing of_node_put 2009-01-08 16:25:07 +11:00
sysdev Merge commit 'origin/master' into next 2009-01-08 16:24:38 +11:00
xmon powerpc: Prepare xmon_save_regs for use with kdump 2008-12-23 15:13:28 +11:00
Kconfig Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc 2008-12-28 16:54:33 -08:00
Kconfig.debug powerpc: Allow the max stack trace depth to be configured 2008-12-03 20:46:35 +11:00
Makefile powerpc: Remove unncessary SPE related compiler flag 2008-12-03 08:19:10 -06:00