projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
sh: Fixed the TMU0 reload value on resume
[cascardo/linux.git]
/
arch
/
sh
/
kernel
/
timers
/
timer-tmu.c
diff --git
a/arch/sh/kernel/timers/timer-tmu.c
b/arch/sh/kernel/timers/timer-tmu.c
index
aaaf90d
..
3c61ddd
100644
(file)
--- a/
arch/sh/kernel/timers/timer-tmu.c
+++ b/
arch/sh/kernel/timers/timer-tmu.c
@@
-120,7
+120,7
@@
static void tmu_set_mode(enum clock_event_mode mode,
{
switch (mode) {
case CLOCK_EVT_MODE_PERIODIC:
- ctrl_outl(
ctrl_inl(TMU0_TCNT)
, TMU0_TCOR);
+ ctrl_outl(
tmu_latest_interval[TMU0]
, TMU0_TCOR);
break;
case CLOCK_EVT_MODE_ONESHOT:
ctrl_outl(0, TMU0_TCOR);