瀏覽代碼

h8300: enable CLKSRC_OF

Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Yoshinori Sato 10 年之前
父節點
當前提交
f639eeb4a6
共有 2 個文件被更改,包括 3 次插入0 次删除
  1. 1 0
      arch/h8300/Kconfig
  2. 2 0
      arch/h8300/kernel/setup.c

+ 1 - 0
arch/h8300/Kconfig

@@ -16,6 +16,7 @@ config H8300
 	select OF_EARLY_FLATTREE
 	select HAVE_MEMBLOCK
 	select HAVE_DMA_ATTRS
+	select CLKSRC_OF
 
 config RWSEM_GENERIC_SPINLOCK
 	def_bool y

+ 2 - 0
arch/h8300/kernel/setup.c

@@ -29,6 +29,7 @@
 #include <linux/clk-provider.h>
 #include <linux/memblock.h>
 #include <linux/screen_info.h>
+#include <linux/clocksource.h>
 
 #include <asm/setup.h>
 #include <asm/irq.h>
@@ -252,4 +253,5 @@ void __init calibrate_delay(void)
 void __init time_init(void)
 {
 	of_clk_init(NULL);
+	clocksource_probe();
 }