mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[PATCH] FRV: Clean up bootmem allocator's page freeing algorithm
The attached patch cleans up the way the bootmem allocator frees pages. A new function, __free_pages_bootmem(), is provided in mm/page_alloc.c that is called from mm/bootmem.c to turn pages over to the main allocator. All the bits of code to initialise pages (clearing PG_reserved and setting the page count) are moved to here. The checks on page validity are removed, on the assumption that the struct page arrays will have been prepared correctly. Signed-off-by: David Howells <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
008857c1a4
commit
a226f6c899
3 changed files with 41 additions and 17 deletions
|
|
@ -26,3 +26,5 @@ static inline void set_page_refs(struct page *page, int order)
|
|||
#endif /* CONFIG_MMU */
|
||||
}
|
||||
|
||||
extern void fastcall __init __free_pages_bootmem(struct page *page,
|
||||
unsigned int order);
|
||||
|
|
|
|||
Loading…
Reference in a new issue