time.c (507fd01d5333338753a1cc26322dfc9f856c109f) time.c (201e91091b1d47047f55580b5474e1239f4d17aa)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * arch/sh/kernel/time.c
4 *
5 * Copyright (C) 1999 Tetsuya Okada & Niibe Yutaka
6 * Copyright (C) 2000 Philipp Rumpf <prumpf@tux.org>
7 * Copyright (C) 2002 - 2009 Paul Mundt
8 * Copyright (C) 2002 M. R. Brown <mrbrown@linux-sh.org>

--- 17 unchanged lines hidden (view full) ---

26 * Make sure all compiled-in early timers register themselves.
27 *
28 * Run probe() for two "earlytimer" devices, these will be the
29 * clockevents and clocksource devices respectively. In the event
30 * that only a clockevents device is available, we -ENODEV on the
31 * clocksource and the jiffies clocksource is used transparently
32 * instead. No error handling is necessary here.
33 */
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * arch/sh/kernel/time.c
4 *
5 * Copyright (C) 1999 Tetsuya Okada & Niibe Yutaka
6 * Copyright (C) 2000 Philipp Rumpf <prumpf@tux.org>
7 * Copyright (C) 2002 - 2009 Paul Mundt
8 * Copyright (C) 2002 M. R. Brown <mrbrown@linux-sh.org>

--- 17 unchanged lines hidden (view full) ---

26 * Make sure all compiled-in early timers register themselves.
27 *
28 * Run probe() for two "earlytimer" devices, these will be the
29 * clockevents and clocksource devices respectively. In the event
30 * that only a clockevents device is available, we -ENODEV on the
31 * clocksource and the jiffies clocksource is used transparently
32 * instead. No error handling is necessary here.
33 */
34 early_platform_driver_register_all("earlytimer");
35 early_platform_driver_probe("earlytimer", 2, 0);
34 sh_early_platform_driver_register_all("earlytimer");
35 sh_early_platform_driver_probe("earlytimer", 2, 0);
36}
37
38void __init time_init(void)
39{
40 timer_probe();
41
42 clk_init();
43
44 late_time_init = sh_late_time_init;
45}
36}
37
38void __init time_init(void)
39{
40 timer_probe();
41
42 clk_init();
43
44 late_time_init = sh_late_time_init;
45}