Skip to content

Commit

Permalink
sh: Bump the earlytimer bits back to time_init().
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Mundt committed Jun 14, 2009
1 parent e09377b commit 1d29ebe
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions arch/sh/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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);
}

0 comments on commit 1d29ebe

Please sign in to comment.