arch/mips/loongson64/time.c
Source file repositories/reference/linux-study-clean/arch/mips/loongson64/time.c
File Facts
- System
- Linux kernel
- Corpus path
arch/mips/loongson64/time.c- Extension
.c- Size
- 929 bytes
- Lines
- 48
- Domain
- Architecture Layer
- Bucket
- arch/mips
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
asm/time.hasm/hpet.hloongson.hlinux/clk.hlinux/of_clk.h
Detected Declarations
function Copyright
Annotated Snippet
if (!np) {
pr_err("Failed to get CPU node\n");
return;
}
clk = of_clk_get(np, 0);
if (IS_ERR(clk)) {
pr_err("Failed to get CPU clock: %ld\n", PTR_ERR(clk));
return;
}
cpu_clock_freq = clk_get_rate(clk);
clk_put(clk);
}
/* setup mips r4k timer */
mips_hpt_frequency = cpu_clock_freq / 2;
#ifdef CONFIG_RS780_HPET
setup_hpet_timer();
#endif
}
Annotation
- Immediate include surface: `asm/time.h`, `asm/hpet.h`, `loongson.h`, `linux/clk.h`, `linux/of_clk.h`.
- Detected declarations: `function Copyright`.
- Atlas domain: Architecture Layer / arch/mips.
- Implementation status: source implementation candidate.
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.