Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54348
b: refs/heads/master
c: f607289
h: refs/heads/master
v: v3
  • Loading branch information
Takashi YOSHII authored and Paul Mundt committed May 7, 2007
1 parent 1d2e9a6 commit 42ae2d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 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: f987fc880d191bf2ef66ac17e9d524aee6afa02e
refs/heads/master: f6072896e3f4c577db7e3a06105ebdfd52d7e7c9
13 changes: 3 additions & 10 deletions trunk/arch/sh/drivers/heartbeat.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,9 @@ static void heartbeat_timer(unsigned long data)
static unsigned bit = 0, up = 1;

ctrl_outw(1 << hd->bit_pos[bit], (unsigned long)hd->base);
if (up)
if (bit == (ARRAY_SIZE(hd->bit_pos) - 1)) {
bit--;
up = 0;
} else
bit++;
else if (bit == 0)
up = 1;
else
bit--;
bit += up;
if ((bit == 0) || (bit == ARRAY_SIZE(hd->bit_pos)-1))
up = -up;

mod_timer(&hd->timer, jiffies + (110 - ((300 << FSHIFT) /
((avenrun[0] / 5) + (3 << FSHIFT)))));
Expand Down

0 comments on commit 42ae2d6

Please sign in to comment.