Patchwork [15/21] ARM: highbank: enable sp804 based sched_clock

login
register
mail settings
Submitter Ike Panhc
Date June 6, 2012, 12:29 p.m.
Message ID <1338985741-26452-1-git-send-email-ike.pan@canonical.com>
Download mbox | patch
Permalink /patch/163349/
State New
Headers show

Comments

Ike Panhc - June 6, 2012, 12:29 p.m.
From: Rob Herring <rob.herring@calxeda.com>

BugLink: http://launchpad.net/bugs/1008345

Initialize sched_clock to use the sp804 timer.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
(cherry picked from commit f3b7cd2a9e3de578a462bb507279870dd41e032e)

Signed-off-by: Ike Panhc <ike.pan@canonical.com>
---
 arch/arm/mach-highbank/highbank.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/arch/arm/mach-highbank/highbank.c b/arch/arm/mach-highbank/highbank.c
index 6be0b2f..e1cc3d5 100644
--- a/arch/arm/mach-highbank/highbank.c
+++ b/arch/arm/mach-highbank/highbank.c
@@ -141,7 +141,7 @@  static void __init highbank_timer_init(void)
 	lookups[1].clk = of_clk_get(np, 0);
 	clkdev_add_table(lookups, ARRAY_SIZE(lookups));
 
-	sp804_clocksource_init(timer_base + 0x20, "timer1");
+	sp804_clocksource_and_sched_clock_init(timer_base + 0x20, "timer1");
 	sp804_clockevents_init(timer_base, irq, "timer0");
 }