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
2dcca542
Commit
2dcca542
authored
Aug 24, 2003
by
Paul Mackerras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PPC32: Declare cpu_online_map and cpu_possible_map as cpumask_t.
parent
5cb01d4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
arch/ppc/kernel/smp.c
arch/ppc/kernel/smp.c
+5
-4
No files found.
arch/ppc/kernel/smp.c
View file @
2dcca542
...
@@ -47,8 +47,8 @@ atomic_t ipi_sent;
...
@@ -47,8 +47,8 @@ atomic_t ipi_sent;
DEFINE_PER_CPU
(
unsigned
int
,
prof_multiplier
);
DEFINE_PER_CPU
(
unsigned
int
,
prof_multiplier
);
DEFINE_PER_CPU
(
unsigned
int
,
prof_counter
);
DEFINE_PER_CPU
(
unsigned
int
,
prof_counter
);
unsigned
long
cache_decay_ticks
=
HZ
/
100
;
unsigned
long
cache_decay_ticks
=
HZ
/
100
;
unsigned
long
cpu_online_map
=
cpumask_of_cpu
(
0
)
;
cpumask_t
cpu_online_map
;
unsigned
long
cpu_possible_map
=
1UL
;
cpumask_t
cpu_possible_map
;
int
smp_hw_index
[
NR_CPUS
];
int
smp_hw_index
[
NR_CPUS
];
struct
thread_info
*
secondary_ti
;
struct
thread_info
*
secondary_ti
;
...
@@ -336,7 +336,7 @@ static void __devinit smp_store_cpu_info(int id)
...
@@ -336,7 +336,7 @@ static void __devinit smp_store_cpu_info(int id)
void
__init
smp_prepare_cpus
(
unsigned
int
max_cpus
)
void
__init
smp_prepare_cpus
(
unsigned
int
max_cpus
)
{
{
int
num_cpus
;
int
num_cpus
,
i
;
/* Fixup boot cpu */
/* Fixup boot cpu */
smp_store_cpu_info
(
smp_processor_id
());
smp_store_cpu_info
(
smp_processor_id
());
...
@@ -350,7 +350,8 @@ void __init smp_prepare_cpus(unsigned int max_cpus)
...
@@ -350,7 +350,8 @@ void __init smp_prepare_cpus(unsigned int max_cpus)
/* Probe platform for CPUs: always linear. */
/* Probe platform for CPUs: always linear. */
num_cpus
=
smp_ops
->
probe
();
num_cpus
=
smp_ops
->
probe
();
cpu_possible_map
=
(
1
<<
num_cpus
)
-
1
;
for
(
i
=
0
;
i
<
num_cpus
;
++
i
)
cpu_set
(
i
,
cpu_possible_map
);
/* Backup CPU 0 state */
/* Backup CPU 0 state */
__save_cpu_setup
();
__save_cpu_setup
();
...
...
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