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
4c5158d4
Commit
4c5158d4
authored
May 17, 2009
by
Russell King
Committed by
Russell King
May 17, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] smp: fix style issues in smp_twd.c
Signed-off-by:
Russell King
<
rmk+kernel@arm.linux.org.uk
>
parent
f32f4ce2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
arch/arm/kernel/smp_twd.c
arch/arm/kernel/smp_twd.c
+14
-12
No files found.
arch/arm/kernel/smp_twd.c
View file @
4c5158d4
...
...
@@ -48,7 +48,7 @@ static void twd_set_mode(enum clock_event_mode mode,
{
unsigned
long
ctrl
;
switch
(
mode
)
{
switch
(
mode
)
{
case
CLOCK_EVT_MODE_PERIODIC
:
/* timer load already set up */
ctrl
=
TWD_TIMER_CONTROL_ENABLE
|
TWD_TIMER_CONTROL_IT_ENABLE
...
...
@@ -72,8 +72,10 @@ static int twd_set_next_event(unsigned long evt,
{
unsigned
long
ctrl
=
__raw_readl
(
twd_base
+
TWD_TIMER_CONTROL
);
ctrl
|=
TWD_TIMER_CONTROL_ENABLE
;
__raw_writel
(
evt
,
twd_base
+
TWD_TIMER_COUNTER
);
__raw_writel
(
ctrl
|
TWD_TIMER_CONTROL_ENABLE
,
twd_base
+
TWD_TIMER_CONTROL
);
__raw_writel
(
ctrl
,
twd_base
+
TWD_TIMER_CONTROL
);
return
0
;
}
...
...
@@ -104,7 +106,7 @@ static void __cpuinit twd_calibrate_rate(void)
* the timer ticks
*/
if
(
twd_timer_rate
==
0
)
{
printk
(
"Calibrating local timer... "
);
printk
(
KERN_INFO
"Calibrating local timer... "
);
/* Wait for a tick to start */
waitjiffies
=
get_jiffies_64
()
+
1
;
...
...
@@ -146,15 +148,15 @@ void __cpuinit twd_timer_setup(struct clock_event_device *clk)
twd_calibrate_rate
();
clk
->
name
=
"local_timer"
;
clk
->
features
=
CLOCK_EVT_FEAT_PERIODIC
|
CLOCK_EVT_FEAT_ONESHOT
;
clk
->
rating
=
350
;
clk
->
set_mode
=
twd_set_mode
;
clk
->
set_next_event
=
twd_set_next_event
;
clk
->
shift
=
20
;
clk
->
mult
=
div_sc
(
twd_timer_rate
,
NSEC_PER_SEC
,
clk
->
shift
);
clk
->
max_delta_ns
=
clockevent_delta2ns
(
0xffffffff
,
clk
);
clk
->
min_delta_ns
=
clockevent_delta2ns
(
0xf
,
clk
);
clk
->
name
=
"local_timer"
;
clk
->
features
=
CLOCK_EVT_FEAT_PERIODIC
|
CLOCK_EVT_FEAT_ONESHOT
;
clk
->
rating
=
350
;
clk
->
set_mode
=
twd_set_mode
;
clk
->
set_next_event
=
twd_set_next_event
;
clk
->
shift
=
20
;
clk
->
mult
=
div_sc
(
twd_timer_rate
,
NSEC_PER_SEC
,
clk
->
shift
);
clk
->
max_delta_ns
=
clockevent_delta2ns
(
0xffffffff
,
clk
);
clk
->
min_delta_ns
=
clockevent_delta2ns
(
0xf
,
clk
);
/* Make sure our local interrupt controller has this enabled */
local_irq_save
(
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