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
5ed56f1a
Commit
5ed56f1a
authored
Apr 26, 2012
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sparc64: Use node local allocations for IRQ stacks.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
625d693e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
9 deletions
+14
-9
arch/sparc/mm/init_64.c
arch/sparc/mm/init_64.c
+14
-9
No files found.
arch/sparc/mm/init_64.c
View file @
5ed56f1a
...
...
@@ -1748,22 +1748,27 @@ void __init paging_init(void)
#endif
}
/* Setup bootmem... */
last_valid_pfn
=
end_pfn
=
bootmem_init
(
phys_base
);
#ifndef CONFIG_NEED_MULTIPLE_NODES
max_mapnr
=
last_valid_pfn
;
#endif
/* Once the OF device tree and MDESC have been setup, we know
* the list of possible cpus. Therefore we can allocate the
* IRQ stacks.
*/
for_each_possible_cpu
(
i
)
{
/* XXX Use node local allocations... XXX */
softirq_stack
[
i
]
=
__va
(
memblock_alloc
(
THREAD_SIZE
,
THREAD_SIZE
));
hardirq_stack
[
i
]
=
__va
(
memblock_alloc
(
THREAD_SIZE
,
THREAD_SIZE
));
}
int
node
=
cpu_to_node
(
i
);
/* Setup bootmem... */
last_valid_pfn
=
end_pfn
=
bootmem_init
(
phys_base
);
softirq_stack
[
i
]
=
__alloc_bootmem_node
(
NODE_DATA
(
node
),
THREAD_SIZE
,
THREAD_SIZE
,
0
);
hardirq_stack
[
i
]
=
__alloc_bootmem_node
(
NODE_DATA
(
node
),
THREAD_SIZE
,
THREAD_SIZE
,
0
);
}
#ifndef CONFIG_NEED_MULTIPLE_NODES
max_mapnr
=
last_valid_pfn
;
#endif
kernel_physical_mapping_init
();
{
...
...
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