sh: Bump the earlytimer bits back to time_init().

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Thursday, June 18, 2009 - 3:03 pm

Gitweb:     http://git.kernel.org/linus/1d29ebebcb951ab6b04d22807cafb24b893310a2
Commit:     1d29ebebcb951ab6b04d22807cafb24b893310a2
Parent:     e09377bae410247f2ba35a2edc7ab637a5c79170
Author:     Paul Mundt <lethal@linux-sh.org>
AuthorDate: Sun Jun 14 19:45:40 2009 +0900
Committer:  Paul Mundt <lethal@linux-sh.org>
CommitDate: Sun Jun 14 19:45:40 2009 +0900

    sh: Bump the earlytimer bits back to time_init().
    
    These were handled through late_time_init due to kmalloc() and friends
    not being available earlier on previously. Now with slab caches being
    available much earlier, this is no longer necessary, and we can move the
    initialization up to an earlier point. One of the benefits with this is
    that printk times are available a bit earlier!
    
    Signed-off-by: Paul Mundt <lethal@linux-sh.org>
---
 arch/sh/kernel/time.c |   17 ++++++-----------
 1 files changed, 6 insertions(+), 11 deletions(-)

diff --git a/arch/sh/kernel/time.c b/arch/sh/kernel/time.c
index 2edde32..0eecbe8 100644
--- a/arch/sh/kernel/time.c
+++ b/arch/sh/kernel/time.c
@@ -96,16 +96,6 @@ unsigned long long sched_clock(void)
 	return (jiffies_64 - INITIAL_JIFFIES) * (NSEC_PER_SEC / HZ);
 }
 
-static void __init sh_late_time_init(void)
-{
-	/*
-	 * Make sure all compiled-in early timers register themselves.
-	 * Run probe() for one "earlytimer" device.
-	 */
-	early_platform_driver_register_all("earlytimer");
-	early_platform_driver_probe("earlytimer", 1, 0);
-}
-
 void __init time_init(void)
 {
 	if (board_time_init)
@@ -121,5 +111,10 @@ void __init time_init(void)
 	local_timer_setup(smp_processor_id());
 #endif
 
-	late_time_init = sh_late_time_init;
+	/*
+	 * Make sure all compiled-in early timers register themselves.
+	 * Run probe() for one "earlytimer" device.
+	 */
+	early_platform_driver_register_all("earlytimer");
+	early_platform_driver_probe("earlytimer", 1, 0);
 }
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
sh: Bump the earlytimer bits back to time_init()., Linux Kernel Mailing ..., (Thu Jun 18, 3:03 pm)