summaryrefslogtreecommitdiffstats
path: root/drivers/clocksource
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2017-03-03 13:34:00 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2017-03-09 07:36:15 +0100
commit92c1033036a0f1d65fb71e7c04cfb9393d31aa1c (patch)
treed39a32ee22abc9c433299693e49b6f78258a3bf8 /drivers/clocksource
parent035842ff5588df73170171587a08f02d29838302 (diff)
downloadbarebox-92c1033036a0f1d65fb71e7c04cfb9393d31aa1c.tar.gz
barebox-92c1033036a0f1d65fb71e7c04cfb9393d31aa1c.tar.xz
efi: move x86 clocksource init at core initcall level
so we can use device/driver model Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/clocksource')
-rw-r--r--drivers/clocksource/efi.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/clocksource/efi.c b/drivers/clocksource/efi.c
index 59fd9918a1..6d2fee8eba 100644
--- a/drivers/clocksource/efi.c
+++ b/drivers/clocksource/efi.c
@@ -1,4 +1,5 @@
#include <common.h>
+#include <init.h>
#include <efi.h>
#include <efi/efi.h>
#include <clock.h>
@@ -48,7 +49,7 @@ static struct clocksource cs = {
.shift = 0,
};
-int efi_clocksource_init(void)
+static int efi_clocksource_init(void)
{
cs.mult = clocksource_hz2mult(1000 * 1000, cs.shift);
@@ -56,3 +57,5 @@ int efi_clocksource_init(void)
return init_clock(&cs);
}
+/* for efi the time must be init at core initcall level */
+core_initcall(efi_clocksource_init);