Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 172444
b: refs/heads/master
c: 345a322
h: refs/heads/master
v: v3
  • Loading branch information
Mikael Pettersson authored and Dan Williams committed Oct 29, 2009
1 parent 5352639 commit 30a5a7f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 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: 980f2296b5a8dfe589f023fd34229dcfdcf280fa
refs/heads/master: 345a32296b1f9f6121379e0240915e0e2be2dbf5
2 changes: 1 addition & 1 deletion trunk/arch/arm/mm/proc-xsc3.S
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ __xsc3_setup:
orr r4, r4, #0x18 @ cache the page table in L2
mcr p15, 0, r4, c2, c0, 0 @ load page table pointer

mov r0, #0 @ don't allow CP access
mov r0, #1 << 6 @ cp6 access for early sched_clock
mcr p15, 0, r0, c15, c1, 0 @ write CP access register

mrc p15, 0, r0, c1, c0, 1 @ get auxiliary control reg
Expand Down
11 changes: 11 additions & 0 deletions trunk/arch/arm/plat-iop/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,17 @@ static void __init iop_clocksource_set_hz(struct clocksource *cs, unsigned int h
cs->name, cs->shift, cs->mult);
}

/*
* IOP sched_clock() implementation via its clocksource.
*/
unsigned long long sched_clock(void)
{
cycle_t cyc = iop_clocksource_read(NULL);
struct clocksource *cs = &iop_clocksource;

return clocksource_cyc2ns(cyc, cs->mult, cs->shift);
}

/*
* IOP clockevents (interrupting timer 0).
*/
Expand Down

0 comments on commit 30a5a7f

Please sign in to comment.