Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 225831
b: refs/heads/master
c: 684e94c
h: refs/heads/master
i:
  225829: 1dcf090
  225827: cc3dbe0
  225823: c6a06be
v: v3
  • Loading branch information
Colin Cross authored and Russell King committed Dec 22, 2010
1 parent 7de12c5 commit a359121
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 11e718a6535c0c7a375b24c3ad60a98b988090c8
refs/heads/master: 684e94cbcb5add60356d124166e40feb2174f0f1
7 changes: 3 additions & 4 deletions trunk/arch/arm/mach-tegra/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ static void tegra_timer_set_mode(enum clock_event_mode mode,

static cycle_t tegra_clocksource_read(struct clocksource *cs)
{
return cnt32_to_63(timer_readl(TIMERUS_CNTR_1US));
return timer_readl(TIMERUS_CNTR_1US);
}

static struct clock_event_device tegra_clockevent = {
Expand All @@ -106,14 +106,13 @@ static struct clocksource tegra_clocksource = {
.name = "timer_us",
.rating = 300,
.read = tegra_clocksource_read,
.mask = 0x7FFFFFFFFFFFFFFFULL,
.mask = CLOCKSOURCE_MASK(32),
.flags = CLOCK_SOURCE_IS_CONTINUOUS,
};

unsigned long long sched_clock(void)
{
return clocksource_cyc2ns(tegra_clocksource.read(&tegra_clocksource),
tegra_clocksource.mult, tegra_clocksource.shift);
return cnt32_to_63(timer_readl(TIMERUS_CNTR_1US)) * 1000;
}

static irqreturn_t tegra_timer_interrupt(int irq, void *dev_id)
Expand Down

0 comments on commit a359121

Please sign in to comment.