Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 66183
b: refs/heads/master
c: 87b2335
h: refs/heads/master
i:
  66181: f304e8b
  66179: 337cebb
  66175: 8d1061e
v: v3
  • Loading branch information
Ralf Baechle committed Oct 11, 2007
1 parent ebaffc3 commit 8e37945
Show file tree
Hide file tree
Showing 2 changed files with 12 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: 584d98be3b90f00b410288e59eeba871fbf81b86
refs/heads/master: 87b2335d6ef97e19ca19dbbb523673680a029e3f
14 changes: 11 additions & 3 deletions trunk/arch/mips/sgi-ip27/ip27-timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,15 +200,23 @@ void __init plat_timer_setup(struct irqaction *irq)
setup_irq(irqno, &rt_irqaction);
}

static cycle_t ip27_hpt_read(void)
static cycle_t hub_rt_read(void)
{
return REMOTE_HUB_L(cputonasid(0), PI_RT_COUNT);
}

struct clocksource ht_rt_clocksource = {
.name = "HUB",
.rating = 200,
.read = hub_rt_read,
.mask = CLOCKSOURCE_MASK(52),
.shift = 32,
.flags = CLOCK_SOURCE_IS_CONTINUOUS,
};

void __init plat_time_init(void)
{
clocksource_mips.read = ip27_hpt_read;
mips_hpt_frequency = CYCLES_PER_SEC;
clocksource_register(&ht_rt_clocksource);
}

void __init cpu_time_init(void)
Expand Down

0 comments on commit 8e37945

Please sign in to comment.