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
Kirill Smelkov
linux
Commits
2d4899f6
Commit
2d4899f6
authored
May 08, 2014
by
Vineet Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARC: arc_local_timer_setup() need not pass own cpu id
Signed-off-by:
Vineet Gupta
<
vgupta@synopsys.com
>
parent
f63f98ea
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
arch/arc/include/asm/irq.h
arch/arc/include/asm/irq.h
+1
-1
arch/arc/kernel/smp.c
arch/arc/kernel/smp.c
+1
-1
arch/arc/kernel/time.c
arch/arc/kernel/time.c
+6
-5
No files found.
arch/arc/include/asm/irq.h
View file @
2d4899f6
...
...
@@ -19,6 +19,6 @@
#include <asm-generic/irq.h>
extern
void
arc_init_IRQ
(
void
);
void
arc_local_timer_setup
(
unsigned
int
cpu
);
void
arc_local_timer_setup
(
void
);
#endif
arch/arc/kernel/smp.c
View file @
2d4899f6
...
...
@@ -138,7 +138,7 @@ void start_kernel_secondary(void)
if
(
machine_desc
->
init_smp
)
machine_desc
->
init_smp
(
smp_processor_id
());
arc_local_timer_setup
(
cpu
);
arc_local_timer_setup
();
local_irq_enable
();
preempt_disable
();
...
...
arch/arc/kernel/time.c
View file @
2d4899f6
...
...
@@ -219,12 +219,13 @@ static struct irqaction arc_timer_irq = {
/*
* Setup the local event timer for @cpu
*/
void
arc_local_timer_setup
(
unsigned
int
cpu
)
void
arc_local_timer_setup
()
{
struct
clock_event_device
*
clk
=
&
per_cpu
(
arc_clockevent_device
,
cpu
);
struct
clock_event_device
*
evt
=
this_cpu_ptr
(
&
arc_clockevent_device
);
int
cpu
=
smp_processor_id
();
clk
->
cpumask
=
cpumask_of
(
cpu
);
clockevents_config_and_register
(
clk
,
arc_get_core_freq
(),
evt
->
cpumask
=
cpumask_of
(
cpu
);
clockevents_config_and_register
(
evt
,
arc_get_core_freq
(),
0
,
ARC_TIMER_MAX
);
/*
...
...
@@ -261,7 +262,7 @@ void __init time_init(void)
clocksource_register_hz
(
&
arc_counter
,
arc_get_core_freq
());
/* sets up the periodic event timer */
arc_local_timer_setup
(
smp_processor_id
()
);
arc_local_timer_setup
();
if
(
machine_desc
->
init_time
)
machine_desc
->
init_time
();
...
...
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