Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 288315
b: refs/heads/master
c: 1202137
h: refs/heads/master
i:
  288313: 76bffb7
  288311: 689add9
v: v3
  • Loading branch information
Gilles Chanteperdrix authored and Russell King committed Feb 27, 2012
1 parent b02d445 commit 4e33815
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 7e55d0527e4925a49464a5b26fdabae1f7a91a77
refs/heads/master: 120213728c6407398428a5692cfa5004b520b274
6 changes: 4 additions & 2 deletions trunk/arch/arm/plat-spear/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,13 @@ static void clockevent_set_mode(enum clock_event_mode mode,
static int clockevent_next_event(unsigned long cycles,
struct clock_event_device *clk_event_dev)
{
u16 val;
u16 val = readw(gpt_base + CR(CLKEVT));

if (val & CTRL_ENABLE)
writew(val & ~CTRL_ENABLE, gpt_base + CR(CLKEVT));

writew(cycles, gpt_base + LOAD(CLKEVT));

val = readw(gpt_base + CR(CLKEVT));
val |= CTRL_ENABLE | CTRL_INT_ENABLE;
writew(val, gpt_base + CR(CLKEVT));

Expand Down

0 comments on commit 4e33815

Please sign in to comment.