linux-mips
[Top] [All Lists]

[PATCH] Introduce mips_late_time_init

To: Ralf Baechle <ralf@linux-mips.org>, linux-mips@linux-mips.org, linux-kernel@vger.kernel.org
Subject: [PATCH] Introduce mips_late_time_init
From: Anoop P A <anoop.pa@gmail.com>
Date: Mon, 06 Dec 2010 13:53:32 +0530
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:content-type :date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=+fxkZXi+Cg7DJfBTXhmoccm/xp1O000fFa/LX7Cp2sM=; b=DvBElsQbisrC3onhIsHAM/P8aDnTjTfk0h97O+wzEokIbegn+sPYe2XVZ/mtEpXmqT 3HOkCR5/1byEJ0qFVLoz0KQDaMAMdJ1XzSy7qnFEj8HV0f6/MCMXcKoZt8o67ZL4sb1g q+IjYgOI7ZxxwFf58spV86NlhibeP136Th6Ck=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; b=KGRFXhriWcgZMo890kF8En6sC6Capuh8KMFHOkYlN4x/8TET1n21vuRqhMQSVjiBx1 mkstEL7ffxvy7dcXP/bX+FWLATBbDK/Vg+NaLG+pXF17vyOc7cEaLPxi2zqqL4iBqNFZ BKiXtOKt8A6ynxVcygYieZiL40XEIHizk3Scc=
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
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;
+}



<Prev in Thread] Current Thread [Next in Thread>