Skip to content

Commit

Permalink
ARM: make machine_desc->init_time default to clocksource_of_init
Browse files Browse the repository at this point in the history
Originally from a default machine descriptor patch from Arnd, pull out
just the default call to clocksource_of_init part. This is needed so that
platforms can simply remove .init_time calls as they are converted to use
clocksource_of_init.

Signed-off-by: Arnd Bergmann <[email protected]>
Acked-by: Nicolas Pitre <[email protected]>
Acked-by: Olof Johansson <[email protected]>
Signed-off-by: Rob Herring <[email protected]>
  • Loading branch information
arndb authored and Rob Herring committed Apr 11, 2013
1 parent 023796b commit f414f13
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion arch/arm/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <linux/errno.h>
#include <linux/profile.h>
#include <linux/timer.h>
#include <linux/clocksource.h>
#include <linux/irq.h>

#include <asm/thread_info.h>
Expand Down Expand Up @@ -115,6 +116,10 @@ int __init register_persistent_clock(clock_access_fn read_boot,

void __init time_init(void)
{
machine_desc->init_time();
if (machine_desc->init_time)
machine_desc->init_time();
else
clocksource_of_init();

sched_clock_postinit();
}

0 comments on commit f414f13

Please sign in to comment.