]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00216013-2 mx6: not call memblock_free after reserve memory.
authorZhang Jiejing <jiejing.zhang@freescale.com>
Mon, 16 Jul 2012 05:51:30 +0000 (13:51 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:12:24 +0000 (14:12 +0200)
commit6cfe19cde60a26f38b9b029e8d127657a28d518b
tree1ac30879bf7d94b15e7b67b7e21cba22e4ce1b35
parent814a0412aef72515fd003537347f794aa544f663
ENGR00216013-2 mx6: not call memblock_free after reserve memory.

Remove call memblock_free after reserve memory with memblock_allocate().
The function of memblock_free is to remove the memory block from reserve list
of memblock, it will totally lost the info about how much phy memory
we have.

Skipping call this can make the reserved memory be accountable in
memblock With no side-effect.

After doing this, we can know how much our phy memory is, then can add check
in our driver like(vpu) to check the phy memory valid or not before vpu start
use the address.

Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
arch/arm/mach-mx6/board-mx6q_arm2.c
arch/arm/mach-mx6/board-mx6q_sabreauto.c
arch/arm/mach-mx6/board-mx6q_sabrelite.c
arch/arm/mach-mx6/board-mx6q_sabresd.c
arch/arm/mach-mx6/board-mx6sl_arm2.c