Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 374226
b: refs/heads/master
c: 6fe4dfd
h: refs/heads/master
v: v3
  • Loading branch information
Tomasz Figa authored and Olof Johansson committed Apr 28, 2013
1 parent ba59960 commit 0ff5a64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e9b852b8a7bc0217a03afff07fad34093e087542
refs/heads/master: 6fe4dfd041dadbc1cc2460ed8680f2734dc3dc95
6 changes: 2 additions & 4 deletions trunk/drivers/clocksource/samsung_pwm_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,6 @@ static void samsung_time_setup(unsigned int channel, unsigned long tcnt)

tcon = __raw_readl(pwm.base + REG_TCON);

tcnt--;

tcon &= ~(TCON_START(tcon_chan) | TCON_AUTORELOAD(tcon_chan));
tcon |= TCON_MANUALUPDATE(tcon_chan);

Expand Down Expand Up @@ -187,7 +185,7 @@ static int samsung_set_next_event(unsigned long cycles,
static void samsung_timer_resume(void)
{
/* event timer restart */
samsung_time_setup(pwm.event_id, pwm.clock_count_per_tick);
samsung_time_setup(pwm.event_id, pwm.clock_count_per_tick - 1);
samsung_time_start(pwm.event_id, true);

/* source timer restart */
Expand All @@ -202,7 +200,7 @@ static void samsung_set_mode(enum clock_event_mode mode,

switch (mode) {
case CLOCK_EVT_MODE_PERIODIC:
samsung_time_setup(pwm.event_id, pwm.clock_count_per_tick);
samsung_time_setup(pwm.event_id, pwm.clock_count_per_tick - 1);
samsung_time_start(pwm.event_id, true);
break;

Expand Down

0 comments on commit 0ff5a64

Please sign in to comment.