forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move memory_present() in arch/mips/kernel/setup.c. When using sparsemem extreme, this function does an allocate for bootmem. This would always fail since init_bootmem hasn't been called yet. Move memory_present after free_bootmem. This only marks actual memory ranges as present instead of the entire address space. Signed-off-by: Chad Reese <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
- Loading branch information
1 parent
ecf52d3
commit b1c231f
Showing
4 changed files
with
18 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#ifndef _MIPS_SPARSEMEM_H | ||
#define _MIPS_SPARSEMEM_H | ||
#ifdef CONFIG_SPARSEMEM | ||
|
||
/* | ||
* SECTION_SIZE_BITS 2^N: how big each section will be | ||
* MAX_PHYSMEM_BITS 2^N: how much memory we can have in that space | ||
*/ | ||
#define SECTION_SIZE_BITS 28 | ||
#define MAX_PHYSMEM_BITS 35 | ||
|
||
#endif /* CONFIG_SPARSEMEM */ | ||
#endif /* _MIPS_SPARSEMEM_H */ | ||
|