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
1d9e5a2b
Commit
1d9e5a2b
authored
Jul 21, 2011
by
Arnd Bergmann
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'msm/fixes' into next/fixes
parents
e8885cb6
41ff445c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
arch/arm/mach-msm/platsmp.c
arch/arm/mach-msm/platsmp.c
+9
-2
No files found.
arch/arm/mach-msm/platsmp.c
View file @
1d9e5a2b
...
...
@@ -18,6 +18,7 @@
#include <asm/hardware/gic.h>
#include <asm/cacheflush.h>
#include <asm/cputype.h>
#include <asm/mach-types.h>
#include <mach/msm_iomap.h>
...
...
@@ -40,6 +41,12 @@ volatile int pen_release = -1;
static
DEFINE_SPINLOCK
(
boot_lock
);
static
inline
int
get_core_count
(
void
)
{
/* 1 + the PART[1:0] field of MIDR */
return
((
read_cpuid_id
()
>>
4
)
&
3
)
+
1
;
}
void
__cpuinit
platform_secondary_init
(
unsigned
int
cpu
)
{
/* Configure edge-triggered PPIs */
...
...
@@ -147,9 +154,9 @@ int __cpuinit boot_secondary(unsigned int cpu, struct task_struct *idle)
*/
void
__init
smp_init_cpus
(
void
)
{
unsigned
int
i
;
unsigned
int
i
,
ncores
=
get_core_count
()
;
for
(
i
=
0
;
i
<
NR_CPUS
;
i
++
)
for
(
i
=
0
;
i
<
ncores
;
i
++
)
set_cpu_possible
(
i
,
true
);
set_smp_cross_call
(
gic_raise_softirq
);
...
...
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