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
86c8ead5
Commit
86c8ead5
authored
Feb 12, 2013
by
Thomas Gleixner
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'timers/for-arm' into timers/core
parents
b22affe0
5d1d9a29
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
kernel/time/tick-broadcast.c
kernel/time/tick-broadcast.c
+14
-8
No files found.
kernel/time/tick-broadcast.c
View file @
86c8ead5
...
...
@@ -92,6 +92,17 @@ static void err_broadcast(const struct cpumask *mask)
pr_crit_once
(
"Failed to broadcast timer tick. Some CPUs may be unresponsive.
\n
"
);
}
static
void
tick_device_setup_broadcast_func
(
struct
clock_event_device
*
dev
)
{
if
(
!
dev
->
broadcast
)
dev
->
broadcast
=
tick_broadcast
;
if
(
!
dev
->
broadcast
)
{
pr_warn_once
(
"%s depends on broadcast, but no broadcast function available
\n
"
,
dev
->
name
);
dev
->
broadcast
=
err_broadcast
;
}
}
/*
* Check, if the device is disfunctional and a place holder, which
* needs to be handled by the broadcast device.
...
...
@@ -111,13 +122,7 @@ int tick_device_uses_broadcast(struct clock_event_device *dev, int cpu)
*/
if
(
!
tick_device_is_functional
(
dev
))
{
dev
->
event_handler
=
tick_handle_periodic
;
if
(
!
dev
->
broadcast
)
dev
->
broadcast
=
tick_broadcast
;
if
(
!
dev
->
broadcast
)
{
pr_warn_once
(
"%s depends on broadcast, but no broadcast function available
\n
"
,
dev
->
name
);
dev
->
broadcast
=
err_broadcast
;
}
tick_device_setup_broadcast_func
(
dev
);
cpumask_set_cpu
(
cpu
,
tick_get_broadcast_mask
());
tick_broadcast_start_periodic
(
tick_broadcast_device
.
evtdev
);
ret
=
1
;
...
...
@@ -129,9 +134,10 @@ int tick_device_uses_broadcast(struct clock_event_device *dev, int cpu)
*/
if
(
!
(
dev
->
features
&
CLOCK_EVT_FEAT_C3STOP
))
{
int
cpu
=
smp_processor_id
();
cpumask_clear_cpu
(
cpu
,
tick_get_broadcast_mask
());
tick_broadcast_clear_oneshot
(
cpu
);
}
else
{
tick_device_setup_broadcast_func
(
dev
);
}
}
raw_spin_unlock_irqrestore
(
&
tick_broadcast_lock
,
flags
);
...
...
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