arch/sparc/kernel/time_32.c
Source file repositories/reference/linux-study-clean/arch/sparc/kernel/time_32.c
File Facts
- System
- Linux kernel
- Corpus path
arch/sparc/kernel/time_32.c- Extension
.c- Size
- 8660 bytes
- Lines
- 357
- Domain
- Architecture Layer
- Bucket
- arch/sparc
- Inferred role
- Architecture Layer: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/errno.hlinux/module.hlinux/sched.hlinux/kernel.hlinux/param.hlinux/string.hlinux/mm.hlinux/interrupt.hlinux/time.hlinux/rtc/m48t59.hlinux/timex.hlinux/clocksource.hlinux/clockchips.hlinux/init.hlinux/pci.hlinux/ioport.hlinux/profile.hlinux/of.hlinux/platform_device.hasm/mc146818rtc.hasm/oplib.hasm/timex.hasm/timer.hasm/irq.hasm/io.hasm/idprom.hasm/page.hasm/pcic.hasm/irq_regs.hasm/setup.hkernel.hirq.h
Detected Declarations
function profile_pcfunction timer_interruptfunction timer_ce_shutdownfunction timer_ce_set_periodicfunction setup_timer_cefunction sbus_cycles_offsetfunction timer_cs_readfunction setup_timer_csfunction percpu_ce_shutdownfunction percpu_ce_set_periodicfunction percpu_ce_set_next_eventfunction register_percpu_cefunction mostek_read_bytefunction mostek_write_bytefunction clock_probefunction clock_initfunction sparc32_late_time_initfunction sbus_time_initfunction time_initmodule init clock_initexport rtc_lockexport profile_pc
Annotated Snippet
/* 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);
static void __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
}
static void __init sbus_time_init(void)
{
sparc_config.get_cycles_offset = sbus_cycles_offset;
sparc_config.init_timers();
}
void __init time_init(void)
{
sparc_config.features = 0;
late_time_init = sparc32_late_time_init;
if (pcic_present())
pci_time_init();
else
sbus_time_init();
}
Annotation
- Immediate include surface: `linux/errno.h`, `linux/module.h`, `linux/sched.h`, `linux/kernel.h`, `linux/param.h`, `linux/string.h`, `linux/mm.h`, `linux/interrupt.h`.
- Detected declarations: `function profile_pc`, `function timer_interrupt`, `function timer_ce_shutdown`, `function timer_ce_set_periodic`, `function setup_timer_ce`, `function sbus_cycles_offset`, `function timer_cs_read`, `function setup_timer_cs`, `function percpu_ce_shutdown`, `function percpu_ce_set_periodic`.
- Atlas domain: Architecture Layer / arch/sparc.
- Implementation status: integration implementation candidate.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.