unify {de,}mangle_poll(), get rid of kernel-side POLL...
[cris-mirror.git] / arch / metag / kernel / time.c
blob1e809e3b43d14e26b105bff2c700ac2f7b527ada
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * Copyright (C) 2005-2013 Imagination Technologies Ltd.
5 * This file contains the Meta-specific time handling details.
7 */
9 #include <clocksource/metag_generic.h>
10 #include <linux/clk-provider.h>
11 #include <linux/init.h>
12 #include <asm/clock.h>
14 void __init time_init(void)
16 #ifdef CONFIG_COMMON_CLK
17 /* Init clocks from device tree */
18 of_clk_init(NULL);
19 #endif
21 /* Init meta clocks, particularly the core clock */
22 init_metag_clocks();
24 /* Set up the timer clock sources */
25 metag_generic_timer_init();