summaryrefslogtreecommitdiffstats
path: root/arch/csky/kernel/time.c
diff options
context:
space:
mode:
authorGuo Ren <ren_guo@c-sky.com>2018-09-05 08:25:14 +0200
committerGuo Ren <ren_guo@c-sky.com>2018-10-25 18:54:13 +0200
commite9564df753fd547fcbcd4fd10015c3b1213ef452 (patch)
tree067236e1b2b5812db80e3ba1ea94b0e2a737a28f /arch/csky/kernel/time.c
parentcsky: MMU and page table management (diff)
downloadlinux-e9564df753fd547fcbcd4fd10015c3b1213ef452.tar.xz
linux-e9564df753fd547fcbcd4fd10015c3b1213ef452.zip
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();
+}