// SPDX-License-Identifier: GPL-2.01/*2* arch/sh/kernel/time.c3*4* Copyright (C) 1999 Tetsuya Okada & Niibe Yutaka5* Copyright (C) 2000 Philipp Rumpf <[email protected]>6* Copyright (C) 2002 - 2009 Paul Mundt7* Copyright (C) 2002 M. R. Brown <[email protected]>8*/9#include <linux/kernel.h>10#include <linux/init.h>11#include <linux/profile.h>12#include <linux/timex.h>13#include <linux/sched.h>14#include <linux/clockchips.h>15#include <linux/platform_device.h>16#include <linux/smp.h>17#include <linux/rtc.h>18#include <asm/clock.h>19#include <asm/rtc.h>20#include <asm/platform_early.h>2122static void __init sh_late_time_init(void)23{24/*25* Make sure all compiled-in early timers register themselves.26*27* Run probe() for two "earlytimer" devices, these will be the28* clockevents and clocksource devices respectively. In the event29* that only a clockevents device is available, we -ENODEV on the30* clocksource and the jiffies clocksource is used transparently31* instead. No error handling is necessary here.32*/33sh_early_platform_driver_register_all("earlytimer");34sh_early_platform_driver_probe("earlytimer", 2, 0);35}3637void __init time_init(void)38{39timer_probe();4041clk_init();4243late_time_init = sh_late_time_init;44}454647