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
5b91ab0a
Commit
5b91ab0a
authored
Feb 01, 2013
by
Will Deacon
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'clocks/broadcast-arm' of
git://linux-arm.org/linux-mr
into for-rmk/broadcast
parents
d954896e
3d06770e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
9 deletions
+5
-9
arch/arm/Kconfig
arch/arm/Kconfig
+1
-0
arch/arm/kernel/smp.c
arch/arm/kernel/smp.c
+4
-9
No files found.
arch/arm/Kconfig
View file @
5b91ab0a
...
...
@@ -4,6 +4,7 @@ config ARM
select ARCH_BINFMT_ELF_RANDOMIZE_PIE
select ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE
select ARCH_HAVE_CUSTOM_GPIO_H
select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
select ARCH_WANT_IPC_PARSE_VERSION
select BUILDTIME_EXTABLE_SORT if MMU
select CPU_PM if (SUSPEND || CPU_IDLE)
...
...
arch/arm/kernel/smp.c
View file @
5b91ab0a
...
...
@@ -475,14 +475,8 @@ u64 smp_irq_stat_cpu(unsigned int cpu)
*/
static
DEFINE_PER_CPU
(
struct
clock_event_device
,
percpu_clockevent
);
static
void
ipi_timer
(
void
)
{
struct
clock_event_device
*
evt
=
&
__get_cpu_var
(
percpu_clockevent
);
evt
->
event_handler
(
evt
);
}
#ifdef CONFIG_GENERIC_CLOCKEVENTS_BROADCAST
static
void
smp_timer
_broadcast
(
const
struct
cpumask
*
mask
)
void
tick
_broadcast
(
const
struct
cpumask
*
mask
)
{
smp_cross_call
(
mask
,
IPI_TIMER
);
}
...
...
@@ -530,7 +524,6 @@ static void __cpuinit percpu_timer_setup(void)
struct
clock_event_device
*
evt
=
&
per_cpu
(
percpu_clockevent
,
cpu
);
evt
->
cpumask
=
cpumask_of
(
cpu
);
evt
->
broadcast
=
smp_timer_broadcast
;
if
(
!
lt_ops
||
lt_ops
->
setup
(
evt
))
broadcast_timer_setup
(
evt
);
...
...
@@ -596,11 +589,13 @@ void handle_IPI(int ipinr, struct pt_regs *regs)
case
IPI_WAKEUP
:
break
;
#ifdef CONFIG_GENERIC_CLOCKEVENTS_BROADCAST
case
IPI_TIMER
:
irq_enter
();
ipi_timer
();
tick_receive_broadcast
();
irq_exit
();
break
;
#endif
case
IPI_RESCHEDULE
:
scheduler_ipi
();
...
...
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