[RAMEN9610-12171] mm: hpa: change allocate logic from buddy
authorhyesoo.yu <hyesoo.yu@samsung.com>
Wed, 11 Oct 2017 06:56:23 +0000 (15:56 +0900)
committerhskang <hs1218.kang@samsung.com>
Thu, 14 Feb 2019 16:20:24 +0000 (01:20 +0900)
commit8b0e92582ab32bb4ca76dd02d47e411c7ecb601d
treeacd7e5504cad1d4ac88a7c8180b3c0dcc91da676
parent9ec4ede3531e78ed69bffe7db3d7d312cc2e7d86
[RAMEN9610-12171] mm: hpa: change allocate logic from buddy

The search order is from smallest order with the same
migrate type for reducing the memory fragment and allocate
only 64KB from buddylist and then expand the buddy pages
if the allocated page's order is bigger than requested
order to avoid allocation failure.

Change-Id: If1b224a7034830615dd59f1c92e603bab1158590
Signed-off-by: hyesoo.yu <hyesoo.yu@samsung.com>
mm/hpa.c