150f852f0d072230097df97db217ac28c823fa7a
[openwrt/svn-archive/archive.git] / target / linux / ixp4xx / patches-2.6.35 / 604-arm-ixp4xx-sched_clock.patch
1 --- a/arch/arm/mach-ixp4xx/common.c
2 +++ b/arch/arm/mach-ixp4xx/common.c
3 @@ -427,6 +427,17 @@ static void __init ixp4xx_clocksource_in
4 }
5
6 /*
7 + * sched_clock()
8 + */
9 +unsigned long long sched_clock(void)
10 +{
11 + cycle_t cyc = ixp4xx_get_cycles(NULL);
12 + struct clocksource *cs = &clocksource_ixp4xx;
13 +
14 + return clocksource_cyc2ns(cyc, cs->mult, cs->shift);
15 +}
16 +
17 +/*
18 * clockevents
19 */
20 static int ixp4xx_set_next_event(unsigned long evt,