aboutsummaryrefslogtreecommitdiff
path: root/arch/openrisc/kernel/time.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2022-01-14 15:32:09 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2022-01-14 15:32:09 +0100
commit871bfa02d08d9c0ed981c50082b7afd367d3700b (patch)
treee0ec0e80911c956a46a9179f9b8c1fa1b0a0a8a3 /arch/openrisc/kernel/time.c
parent29ec39fcf11e4583eb8d5174f756ea109c77cc44 (diff)
parent7f435e42fd6b65fd8759963156e1ef0fb7d213f8 (diff)
Merge tag 'for-linus' of git://github.com/openrisc/linux
Pull OpenRISC updates from Stafford Horne: "A few fixups and enhancements for OpenRISC: - Fix to add proper wrapper for clone3 to save callee saved regs - Cleanups for clone, fork and switch - Add support for common clk so OpenRISC and use more drivers" * tag 'for-linus' of git://github.com/openrisc/linux: openrisc: init: Add support for common clk openrisc: Add clone3 ABI wrapper openrisc: Use delay slot for clone and fork wrappers openrisc: Cleanup switch code and comments
Diffstat (limited to 'arch/openrisc/kernel/time.c')
-rw-r--r--arch/openrisc/kernel/time.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/openrisc/kernel/time.c b/arch/openrisc/kernel/time.c
index a6e69386f82a..6d18989d63d0 100644
--- a/arch/openrisc/kernel/time.c
+++ b/arch/openrisc/kernel/time.c
@@ -20,6 +20,7 @@
#include <linux/clockchips.h>
#include <linux/irq.h>
#include <linux/io.h>
+#include <linux/of_clk.h>
#include <asm/cpuinfo.h>
@@ -169,4 +170,7 @@ void __init time_init(void)
openrisc_timer_init();
openrisc_clockevent_init();
+
+ of_clk_init(NULL);
+ timer_probe();
}