arch/arm/mach-omap1/timer32k.c
Source file repositories/reference/linux-study-clean/arch/arm/mach-omap1/timer32k.c
File Facts
- System
- Linux kernel
- Corpus path
arch/arm/mach-omap1/timer32k.c- Extension
.c- Size
- 8438 bytes
- Lines
- 283
- Domain
- Architecture Layer
- Bucket
- arch/arm
- Inferred role
- Architecture Layer: implementation source
- Status
- source 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.
- 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/kernel.hlinux/init.hlinux/delay.hlinux/interrupt.hlinux/sched.hlinux/spinlock.hlinux/err.hlinux/clk.hlinux/clocksource.hlinux/clockchips.hlinux/io.hlinux/sched_clock.hasm/irq.hasm/mach/irq.hasm/mach/time.hhardware.hcommon.h
Detected Declarations
function omap_32k_timer_writefunction omap_32k_timer_startfunction omap_32k_timer_stopfunction omap_32k_timer_set_next_eventfunction omap_32k_timer_shutdownfunction omap_32k_timer_set_periodicfunction omap_32k_timer_interruptfunction omap_init_32k_timerfunction omap_32k_read_sched_clockfunction omap_read_persistent_clock64function omap_init_clocksource_32kfunction omap_32k_timer_init
Annotated Snippet
if (!base) {
pr_err("32k_counter: failed to map base addr\n");
return -ENODEV;
}
sync32k_ick = clk_get(NULL, "omap_32ksync_ick");
if (!IS_ERR(sync32k_ick))
clk_prepare_enable(sync32k_ick);
ret = omap_init_clocksource_32k(base);
}
if (!ret)
omap_init_32k_timer();
return ret;
}
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/init.h`, `linux/delay.h`, `linux/interrupt.h`, `linux/sched.h`, `linux/spinlock.h`, `linux/err.h`, `linux/clk.h`.
- Detected declarations: `function omap_32k_timer_write`, `function omap_32k_timer_start`, `function omap_32k_timer_stop`, `function omap_32k_timer_set_next_event`, `function omap_32k_timer_shutdown`, `function omap_32k_timer_set_periodic`, `function omap_32k_timer_interrupt`, `function omap_init_32k_timer`, `function omap_32k_read_sched_clock`, `function omap_read_persistent_clock64`.
- Atlas domain: Architecture Layer / arch/arm.
- Implementation status: source 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.