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
c2411bff
Commit
c2411bff
authored
Oct 23, 2006
by
Tony Lindgren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sync with mainline: arch/arm/plat-omap/timer32k.c
parent
28c6715d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
arch/arm/plat-omap/timer32k.c
arch/arm/plat-omap/timer32k.c
+6
-9
No files found.
arch/arm/plat-omap/timer32k.c
View file @
c2411bff
...
...
@@ -194,8 +194,7 @@ unsigned long long sched_clock(void)
* issues with dynamic tick. In the dynamic tick case, we need to lock
* with irqsave.
*/
static
inline
irqreturn_t
_omap_32k_timer_interrupt
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
static
inline
irqreturn_t
_omap_32k_timer_interrupt
(
int
irq
,
void
*
dev_id
)
{
unsigned
long
now
;
...
...
@@ -205,7 +204,7 @@ static inline irqreturn_t _omap_32k_timer_interrupt(int irq, void *dev_id,
while
((
signed
long
)(
now
-
omap_32k_last_tick
)
>=
OMAP_32K_TICKS_PER_HZ
)
{
omap_32k_last_tick
+=
OMAP_32K_TICKS_PER_HZ
;
timer_tick
(
regs
);
timer_tick
();
}
/* Restart timer so we don't drift off due to modulo or dynamic tick.
...
...
@@ -218,8 +217,7 @@ static inline irqreturn_t _omap_32k_timer_interrupt(int irq, void *dev_id,
return
IRQ_HANDLED
;
}
static
irqreturn_t
omap_32k_timer_handler
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
static
irqreturn_t
omap_32k_timer_handler
(
int
irq
,
void
*
dev_id
)
{
unsigned
long
now
;
...
...
@@ -232,16 +230,15 @@ static irqreturn_t omap_32k_timer_handler(int irq, void *dev_id,
if
(
now
-
omap_32k_last_tick
<
OMAP_32K_TICKS_PER_HZ
)
return
IRQ_HANDLED
;
return
_omap_32k_timer_interrupt
(
irq
,
dev_id
,
regs
);
return
_omap_32k_timer_interrupt
(
irq
,
dev_id
);
}
static
irqreturn_t
omap_32k_timer_interrupt
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
static
irqreturn_t
omap_32k_timer_interrupt
(
int
irq
,
void
*
dev_id
)
{
unsigned
long
flags
;
write_seqlock_irqsave
(
&
xtime_lock
,
flags
);
_omap_32k_timer_interrupt
(
irq
,
dev_id
,
regs
);
_omap_32k_timer_interrupt
(
irq
,
dev_id
);
write_sequnlock_irqrestore
(
&
xtime_lock
,
flags
);
return
IRQ_HANDLED
;
...
...
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