summaryrefslogtreecommitdiff
path: root/arch/csky/kernel/time.c
diff options
context:
space:
mode:
authorGuo Ren <ren_guo@c-sky.com>2018-09-05 09:25:14 +0300
committerGuo Ren <ren_guo@c-sky.com>2018-10-25 19:54:13 +0300
commite9564df753fd547fcbcd4fd10015c3b1213ef452 (patch)
tree067236e1b2b5812db80e3ba1ea94b0e2a737a28f /arch/csky/kernel/time.c
parent013de2d6671d89de3397904749c86a69ac0686f7 (diff)
downloadlinux-e9564df753fd547fcbcd4fd10015c3b1213ef452.tar.xz
csky: Process management and Signal
This patch adds files related to task_switch, sigcontext, signal, fpu context switch. Signed-off-by: Guo Ren <ren_guo@c-sky.com> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'arch/csky/kernel/time.c')
-rw-r--r--arch/csky/kernel/time.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/csky/kernel/time.c b/arch/csky/kernel/time.c
new file mode 100644
index 000000000000..b5fc9447d93f
--- /dev/null
+++ b/arch/csky/kernel/time.c
@@ -0,0 +1,11 @@
+// SPDX-License-Identifier: GPL-2.0
+// Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
+
+#include <linux/clk-provider.h>
+#include <linux/clocksource.h>
+
+void __init time_init(void)
+{
+ of_clk_init(NULL);
+ timer_probe();
+}