Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 74895
b: refs/heads/master
c: 553876c
h: refs/heads/master
i:
  74893: cbe2644
  74891: fc113e3
  74887: 97bff96
  74879: 3f77e8f
v: v3
  • Loading branch information
Kevin Hilman authored and Russell King committed Dec 17, 2007
1 parent 498f23f commit 98ff546
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 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: 41a9e680717e82c745b1ead979ea008e9134ea68
refs/heads/master: 553876c802249b21267b78a9b3857d1341a3df87
10 changes: 7 additions & 3 deletions trunk/arch/arm/mach-ixp4xx/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,8 @@ static int ixp4xx_set_next_event(unsigned long evt,
static void ixp4xx_set_mode(enum clock_event_mode mode,
struct clock_event_device *evt)
{
unsigned long opts, osrt = *IXP4XX_OSRT1 & ~IXP4XX_OST_RELOAD_MASK;
unsigned long opts = *IXP4XX_OSRT1 & IXP4XX_OST_RELOAD_MASK;
unsigned long osrt = *IXP4XX_OSRT1 & ~IXP4XX_OST_RELOAD_MASK;

switch (mode) {
case CLOCK_EVT_MODE_PERIODIC:
Expand All @@ -455,12 +456,15 @@ static void ixp4xx_set_mode(enum clock_event_mode mode,
opts = IXP4XX_OST_ENABLE | IXP4XX_OST_ONE_SHOT;
break;
case CLOCK_EVT_MODE_SHUTDOWN:
opts &= ~IXP4XX_OST_ENABLE;
break;
case CLOCK_EVT_MODE_RESUME:
opts |= IXP4XX_OST_ENABLE;
break;
case CLOCK_EVT_MODE_UNUSED:
default:
osrt = opts = 0;
break;
case CLOCK_EVT_MODE_RESUME:
break;
}

*IXP4XX_OSRT1 = osrt | opts;
Expand Down

0 comments on commit 98ff546

Please sign in to comment.