Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci-2.6.23
Commits
5a089006
Commit
5a089006
authored
Dec 14, 2006
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Mirror x86_64's PERCPU_ENOUGH_ROOM definition.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
9bc83dcf
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
+12
-5
arch/sparc64/kernel/smp.c
arch/sparc64/kernel/smp.c
+2
-5
include/asm-sparc64/percpu.h
include/asm-sparc64/percpu.h
+10
-0
No files found.
arch/sparc64/kernel/smp.c
View file @
5a089006
...
...
@@ -1447,11 +1447,8 @@ void __init setup_per_cpu_areas(void)
char
*
ptr
;
/* Copy section for each CPU (we discard the original) */
goal
=
ALIGN
(
__per_cpu_end
-
__per_cpu_start
,
SMP_CACHE_BYTES
);
#ifdef CONFIG_MODULES
if
(
goal
<
PERCPU_ENOUGH_ROOM
)
goal
=
PERCPU_ENOUGH_ROOM
;
#endif
__per_cpu_shift
=
0
;
for
(
size
=
1UL
;
size
<
goal
;
size
<<=
1UL
)
__per_cpu_shift
++
;
...
...
include/asm-sparc64/percpu.h
View file @
5a089006
...
...
@@ -5,6 +5,16 @@
#ifdef CONFIG_SMP
#ifdef CONFIG_MODULES
# define PERCPU_MODULE_RESERVE 8192
#else
# define PERCPU_MODULE_RESERVE 0
#endif
#define PERCPU_ENOUGH_ROOM \
(ALIGN(__per_cpu_end - __per_cpu_start, SMP_CACHE_BYTES) + \
PERCPU_MODULE_RESERVE)
extern
void
setup_per_cpu_areas
(
void
);
extern
unsigned
long
__per_cpu_base
;
...
...
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