diff options
author | Roshni Shah <roshni.shah@timesys.com> | 2013-03-10 20:39:34 -0400 |
---|---|---|
committer | Russell Robinson Jr <rrobinson@phytec.com> | 2013-03-29 08:13:49 -0700 |
commit | fcbe1245c34fa407ff20d6afd2f975e8f961a17b (patch) | |
tree | 8f3255c05b10b382a361e1eca47794b3485c2572 /arch/arm/plat-mxc/pit.c | |
parent | b8d91272a67f847f91e868d73f1309b43c9cec21 (diff) |
fix scheduler not seeing time pass, would not interrupt cpu bound process
Signed-off-by: Ed Nash <ed@kidlearn.com>
Signed-off-by: Russell Robinson Jr <rrobinson@phytec.com>
Diffstat (limited to 'arch/arm/plat-mxc/pit.c')
-rw-r--r-- | arch/arm/plat-mxc/pit.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/plat-mxc/pit.c b/arch/arm/plat-mxc/pit.c index ba71bda51c06..e82cca9d06ea 100644 --- a/arch/arm/plat-mxc/pit.c +++ b/arch/arm/plat-mxc/pit.c @@ -90,6 +90,12 @@ static cycle_t pit_read_clk(struct clocksource *cs); static DEFINE_CLOCK_DATA(cd); static void __iomem *sched_clock_reg; +unsigned long long notrace sched_clock(void) +{ + cycle_t cyc = sched_clock_reg ? ((u32)~0 + - __raw_readl(sched_clock_reg)) : 0; + return cyc_to_sched_clock(&cd, cyc, (u32)~0); +} static void notrace mvf_update_sched_clock(void) { |