mm/hpa: add alloc_pages_highorder_except()
authorCho KyongHo <pullip.cho@samsung.com>
Thu, 3 May 2018 08:09:42 +0000 (17:09 +0900)
committerhyesoo.yu <hyesoo.yu@samsung.com>
Tue, 29 May 2018 06:19:31 +0000 (15:19 +0900)
commit10ef60046672af5474cd50f3e642b9f472c35053
treee69f295e153e4e7c0b2920bf04351e4b24e41d9a
parenta1502255355077d407b6fbfa42c536f7dfd65407
mm/hpa: add alloc_pages_highorder_except()

alloc_pages_highorder() allocates given number of pages of given order.
It is a page allocator with a restriction of page order. Therefore, it
is used by the drivers of H/Ws with a requirement of higher memory
alignment than PAGE_SIZE.
Moreover some H/W have additional restriction of memory addressing.
They are not accessible to some range of memory.
alloc_pages_highorder_except() provides a way to avoid unaccessible
memory area to HPA not to allocate inappropriate pages to the drivers.

Change-Id: I6c5fe40c7dd5367ea15eb69c7bf68325070dafa4
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
include/linux/gfp.h
mm/hpa.c