From: Simon Horman Date: Tue, 11 Dec 2012 01:20:21 +0000 (+0900) Subject: ARM: clocksource: Initialise early X-Git-Tag: next-20130218~14^2^4~4^2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1acb8bb693458f58c5fd594b0736d04101e6d81d;p=karo-tx-linux.git ARM: clocksource: Initialise early Initialise clock sources early, since some subsystems rely on them to initialize. This came up when working on DT support for the kzm9g board. The prototype does not use early timers and I found that the CMT clocksource needs to be initialised before the MMCIF MMC driver. Cc: linux-kernel@vger.kernel.org Signed-off-by: Simon Horman --- diff --git a/drivers/Makefile b/drivers/Makefile index 7863b9fee50b..f156db55b455 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -37,6 +37,11 @@ obj-$(CONFIG_XEN) += xen/ # regulators early, since some subsystems rely on them to initialize obj-$(CONFIG_REGULATOR) += regulator/ +# clocksource early, since some subsystems rely on them to initialize +ifndef CONFIG_ARCH_USES_GETTIMEOFFSET +obj-y += clocksource/ +endif + # tty/ comes before char/ so that the VT console is the boot-time # default. obj-y += tty/ @@ -114,9 +119,6 @@ obj-y += firmware/ obj-$(CONFIG_CRYPTO) += crypto/ obj-$(CONFIG_SUPERH) += sh/ obj-$(CONFIG_ARCH_SHMOBILE) += sh/ -ifndef CONFIG_ARCH_USES_GETTIMEOFFSET -obj-y += clocksource/ -endif obj-$(CONFIG_DCA) += dca/ obj-$(CONFIG_HID) += hid/ obj-$(CONFIG_PPC_PS3) += ps3/