// SPDX-License-Identifier: GPL-2.0 /* linux/arch/sparc/kernel/time.c * * Copyright (C) 1995 David S. Miller (davem@davemloft.net) * Copyright (C) 1996 Thomas K. Dyas (tdyas@eden.rutgers.edu) * * Chris Davis (cdavis@cois.on.ca) 03/27/1998 * Added support for the intersil on the sun4/4200 * * Gleb Raiko (rajko@mech.math.msu.su) 08/18/1998 * Support for MicroSPARC-IIep, PCI CPU. * * This file handles the Sparc specific time handling details. * * 1997-09-10 Updated NTP code according to technical memorandum Jan '96 * "A Kernel Model for Precision Timekeeping" by Dave Mills
*/ #include <linux/errno.h> #include <linux/module.h> #include <linux/sched.h> #include <linux/kernel.h> #include <linux/param.h> #include <linux/string.h> #include <linux/mm.h> #include <linux/interrupt.h> #include <linux/time.h> #include <linux/rtc/m48t59.h> #include <linux/timex.h> #include <linux/clocksource.h> #include <linux/clockchips.h> #include <linux/init.h> #include <linux/pci.h> #include <linux/ioport.h> #include <linux/profile.h> #include <linux/of.h> #include <linux/platform_device.h>
staticint percpu_ce_set_next_event(unsignedlong delta, struct clock_event_device *evt)
{ int cpu = cpumask_first(evt->cpumask); unsignedint next = (unsignedint)delta;
/* Probe for the mostek real time clock chip. */ staticint __init clock_init(void)
{ return platform_driver_register(&clock_driver);
} /* Must be after subsys_initcall() so that busses are probed. Must * be before device_initcall() because things like the RTC driver * need to see the clock registers.
*/
fs_initcall(clock_init);
staticvoid __init sparc32_late_time_init(void)
{ if (sparc_config.features & FEAT_L10_CLOCKEVENT)
setup_timer_ce(); if (sparc_config.features & FEAT_L10_CLOCKSOURCE)
setup_timer_cs(); #ifdef CONFIG_SMP
register_percpu_ce(smp_processor_id()); #endif
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.