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
b7a4c946
Commit
b7a4c946
authored
Oct 12, 2009
by
Tejun Heo
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-linus' into for-next
parents
e800879d
1a0c3298
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
mm/percpu.c
mm/percpu.c
+3
-2
No files found.
mm/percpu.c
View file @
b7a4c946
...
@@ -1868,13 +1868,14 @@ int __init pcpu_embed_first_chunk(size_t reserved_size, ssize_t dyn_size,
...
@@ -1868,13 +1868,14 @@ int __init pcpu_embed_first_chunk(size_t reserved_size, ssize_t dyn_size,
max_distance
=
0
;
max_distance
=
0
;
for
(
group
=
0
;
group
<
ai
->
nr_groups
;
group
++
)
{
for
(
group
=
0
;
group
<
ai
->
nr_groups
;
group
++
)
{
ai
->
groups
[
group
].
base_offset
=
areas
[
group
]
-
base
;
ai
->
groups
[
group
].
base_offset
=
areas
[
group
]
-
base
;
max_distance
=
max
(
max_distance
,
ai
->
groups
[
group
].
base_offset
);
max_distance
=
max_t
(
size_t
,
max_distance
,
ai
->
groups
[
group
].
base_offset
);
}
}
max_distance
+=
ai
->
unit_size
;
max_distance
+=
ai
->
unit_size
;
/* warn if maximum distance is further than 75% of vmalloc space */
/* warn if maximum distance is further than 75% of vmalloc space */
if
(
max_distance
>
(
VMALLOC_END
-
VMALLOC_START
)
*
3
/
4
)
{
if
(
max_distance
>
(
VMALLOC_END
-
VMALLOC_START
)
*
3
/
4
)
{
pr_warning
(
"PERCPU: max_distance=0x%
l
x too large for vmalloc "
pr_warning
(
"PERCPU: max_distance=0x%
z
x too large for vmalloc "
"space 0x%lx
\n
"
,
"space 0x%lx
\n
"
,
max_distance
,
VMALLOC_END
-
VMALLOC_START
);
max_distance
,
VMALLOC_END
-
VMALLOC_START
);
#ifdef CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK
#ifdef CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK
...
...
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