Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
Linux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
E-EXK4 - Operating System Group
projects
Linux
Commits
27f574c2
Commit
27f574c2
authored
14 years ago
by
Benjamin Herrenschmidt
Browse files
Options
Downloads
Patches
Plain Diff
memblock: Expose MEMBLOCK_ALLOC_ANYWHERE
Signed-off-by:
Benjamin Herrenschmidt
<
benh@kernel.crashing.org
>
parent
c3f72b57
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
arch/powerpc/mm/hash_utils_64.c
+1
-1
1 addition, 1 deletion
arch/powerpc/mm/hash_utils_64.c
include/linux/memblock.h
+1
-0
1 addition, 0 deletions
include/linux/memblock.h
mm/memblock.c
+0
-2
0 additions, 2 deletions
mm/memblock.c
with
2 additions
and
3 deletions
arch/powerpc/mm/hash_utils_64.c
+
1
−
1
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
);
...
...
This diff is collapsed.
Click to expand it.
include/linux/memblock.h
+
1
−
0
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
);
...
...
This diff is collapsed.
Click to expand it.
mm/memblock.c
+
0
−
2
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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment