-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Matt Tolentino
authored and
Linus Torvalds
committed
Jun 23, 2005
1 parent
d3081ce
commit caacf86
Showing
5 changed files
with
52 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 2b97690f4cd960779fb351b7cd9974390afabb36 | ||
refs/heads/master: bbfceef47fb9467424113a004070bf37a806a97c |
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,26 @@ | ||
#ifndef _ASM_X86_64_SPARSEMEM_H | ||
#define _ASM_X86_64_SPARSEMEM_H 1 | ||
|
||
#ifdef CONFIG_SPARSEMEM | ||
|
||
/* | ||
* generic non-linear memory support: | ||
* | ||
* 1) we will not split memory into more chunks than will fit into the flags | ||
* field of the struct page | ||
* | ||
* SECTION_SIZE_BITS 2^n: size of each section | ||
* MAX_PHYSADDR_BITS 2^n: max size of physical address space | ||
* MAX_PHYSMEM_BITS 2^n: how much memory we can have in that space | ||
* | ||
*/ | ||
|
||
#define SECTION_SIZE_BITS 27 /* matt - 128 is convenient right now */ | ||
#define MAX_PHYSADDR_BITS 40 | ||
#define MAX_PHYSMEM_BITS 40 | ||
|
||
extern int early_pfn_to_nid(unsigned long pfn); | ||
|
||
#endif /* CONFIG_SPARSEMEM */ | ||
|
||
#endif /* _ASM_X86_64_SPARSEMEM_H */ |