Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
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
Commits
5d43045b
Commit
5d43045b
authored
Nov 08, 2005
by
Russell King
Committed by
Russell King
Nov 08, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM SMP] Fix some sparse warnings in SMP code
Signed-off-by:
Russell King
<
rmk+kernel@arm.linux.org.uk
>
parent
dbebb4cb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
arch/arm/kernel/smp.c
arch/arm/kernel/smp.c
+3
-3
arch/arm/mach-realview/platsmp.c
arch/arm/mach-realview/platsmp.c
+5
-5
No files found.
arch/arm/kernel/smp.c
View file @
5d43045b
...
@@ -142,7 +142,7 @@ int __cpuinit __cpu_up(unsigned int cpu)
...
@@ -142,7 +142,7 @@ int __cpuinit __cpu_up(unsigned int cpu)
ret
=
-
EIO
;
ret
=
-
EIO
;
}
}
secondary_data
.
stack
=
0
;
secondary_data
.
stack
=
NULL
;
secondary_data
.
pgdir
=
0
;
secondary_data
.
pgdir
=
0
;
*
pmd_offset
(
pgd
,
PHYS_OFFSET
)
=
__pmd
(
0
);
*
pmd_offset
(
pgd
,
PHYS_OFFSET
)
=
__pmd
(
0
);
...
@@ -359,8 +359,8 @@ static void send_ipi_message(cpumask_t callmap, enum ipi_msg_type msg)
...
@@ -359,8 +359,8 @@ static void send_ipi_message(cpumask_t callmap, enum ipi_msg_type msg)
* You must not call this function with disabled interrupts, from a
* You must not call this function with disabled interrupts, from a
* hardware interrupt handler, nor from a bottom half handler.
* hardware interrupt handler, nor from a bottom half handler.
*/
*/
int
smp_call_function_on_cpu
(
void
(
*
func
)(
void
*
info
),
void
*
info
,
int
retry
,
static
int
smp_call_function_on_cpu
(
void
(
*
func
)(
void
*
info
),
void
*
info
,
int
wait
,
cpumask_t
callmap
)
int
retry
,
int
wait
,
cpumask_t
callmap
)
{
{
struct
smp_call_struct
data
;
struct
smp_call_struct
data
;
unsigned
long
timeout
;
unsigned
long
timeout
;
...
...
arch/arm/mach-realview/platsmp.c
View file @
5d43045b
...
@@ -32,7 +32,7 @@ static unsigned int __init get_core_count(void)
...
@@ -32,7 +32,7 @@ static unsigned int __init get_core_count(void)
{
{
unsigned
int
ncores
;
unsigned
int
ncores
;
ncores
=
__raw_readl
(
IO_ADDRESS
(
REALVIEW_MPCORE_SCU_BASE
)
+
SCU_CONFIG
);
ncores
=
__raw_readl
(
__io_address
(
REALVIEW_MPCORE_SCU_BASE
)
+
SCU_CONFIG
);
return
(
ncores
&
0x03
)
+
1
;
return
(
ncores
&
0x03
)
+
1
;
}
}
...
@@ -133,12 +133,12 @@ static void __init poke_milo(void)
...
@@ -133,12 +133,12 @@ static void __init poke_milo(void)
#if 1
#if 1
#define REALVIEW_SYS_FLAGSS_OFFSET 0x30
#define REALVIEW_SYS_FLAGSS_OFFSET 0x30
__raw_writel
(
virt_to_phys
(
realview_secondary_startup
),
__raw_writel
(
virt_to_phys
(
realview_secondary_startup
),
(
IO_ADDRESS
(
REALVIEW_SYS_BASE
)
+
__io_address
(
REALVIEW_SYS_BASE
)
+
REALVIEW_SYS_FLAGSS_OFFSET
)
);
REALVIEW_SYS_FLAGSS_OFFSET
);
#define REALVIEW_SYS_FLAGSC_OFFSET 0x34
#define REALVIEW_SYS_FLAGSC_OFFSET 0x34
__raw_writel
(
3
,
__raw_writel
(
3
,
(
IO_ADDRESS
(
REALVIEW_SYS_BASE
)
+
__io_address
(
REALVIEW_SYS_BASE
)
+
REALVIEW_SYS_FLAGSC_OFFSET
)
);
REALVIEW_SYS_FLAGSC_OFFSET
);
#endif
#endif
mb
();
mb
();
...
...
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