mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[PATCH] sparsemem base: teach discontig about sparse ranges
discontig.c has some assumptions that mem_map[]s inside of a node are contiguous. Teach it to make sure that each region that it's bringing online is actually made up of valid ranges of ram. Written-by: Andy Whitcroft <[email protected]> Signed-off-by: Dave Hansen <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
348f8b6c48
commit
5b505b90b2
3 changed files with 17 additions and 1 deletions
|
|
@ -120,6 +120,8 @@ static __inline__ int get_order(unsigned long size)
|
|||
|
||||
extern int sysctl_legacy_va_layout;
|
||||
|
||||
extern int page_is_ram(unsigned long pagenr);
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
|
||||
#ifdef __ASSEMBLY__
|
||||
|
|
|
|||
Loading…
Reference in a new issue