Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
27f574c2
Commit
27f574c2
authored
Jul 06, 2010
by
Benjamin Herrenschmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
memblock: Expose MEMBLOCK_ALLOC_ANYWHERE
Signed-off-by:
Benjamin Herrenschmidt
<
benh@kernel.crashing.org
>
parent
c3f72b57
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
3 deletions
+2
-3
arch/powerpc/mm/hash_utils_64.c
arch/powerpc/mm/hash_utils_64.c
+1
-1
include/linux/memblock.h
include/linux/memblock.h
+1
-0
mm/memblock.c
mm/memblock.c
+0
-2
No files found.
arch/powerpc/mm/hash_utils_64.c
View file @
27f574c2
...
...
@@ -625,7 +625,7 @@ static void __init htab_initialize(void)
if
(
machine_is
(
cell
))
limit
=
0x80000000
;
else
limit
=
0
;
limit
=
MEMBLOCK_ALLOC_ANYWHERE
;
table
=
memblock_alloc_base
(
htab_size_bytes
,
htab_size_bytes
,
limit
);
...
...
include/linux/memblock.h
View file @
27f574c2
...
...
@@ -50,6 +50,7 @@ extern u64 __init memblock_alloc_nid(u64 size, u64 align, int nid);
extern
u64
__init
memblock_alloc
(
u64
size
,
u64
align
);
extern
u64
__init
memblock_alloc_base
(
u64
size
,
u64
,
u64
max_addr
);
#define MEMBLOCK_ALLOC_ANYWHERE 0
extern
u64
__init
__memblock_alloc_base
(
u64
size
,
u64
align
,
u64
max_addr
);
extern
u64
__init
memblock_phys_mem_size
(
void
);
...
...
mm/memblock.c
View file @
27f574c2
...
...
@@ -15,8 +15,6 @@
#include <linux/bitops.h>
#include <linux/memblock.h>
#define MEMBLOCK_ALLOC_ANYWHERE 0
struct
memblock
memblock
;
static
int
memblock_debug
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment