lkml.org 
[lkml]   [2010]   [Dec]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH] Introduce mips_late_time_init
From
Date
This patch moves plat_time_init and clocksoure init funtion calls to
late_time_init.

Signed-off-by: Anoop P A <anoop.pa@gmail.com>
---
diff --git a/arch/mips/kernel/time.c b/arch/mips/kernel/time.c
index fb74974..dbd1ac5 100644
--- a/arch/mips/kernel/time.c
+++ b/arch/mips/kernel/time.c
@@ -117,10 +117,16 @@ static __init int cpu_has_mfc0_count_bug(void)
return 0;
}

-void __init time_init(void)
+void __init mips_late_time_init(void)
{
plat_time_init();

if (!mips_clockevent_init() || !cpu_has_mfc0_count_bug())
init_mips_clocksource();
}
+
+
+void __init time_init(void)
+{
+ late_time_init = mips_late_time_init;
+}



\
 
 \ /
  Last update: 2010-12-06 09:21    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site