arch/s390/kernel/trace_clock.c

Source file repositories/reference/linux-study-clean/arch/s390/kernel/trace_clock.c

File Facts

System
Linux kernel
Corpus path
arch/s390/kernel/trace_clock.c
Extension
.c
Size
293 bytes
Lines
13
Domain
Architecture Layer
Bucket
arch/s390
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.

Dependency Surface

Detected Declarations

Annotated Snippet

// SPDX-License-Identifier: GPL-2.0
#include <linux/trace_clock.h>
#include <linux/timex.h>
/*
 * trace_clock_s390_tod(): trace clock based on the s390 TOD clock
 *
 * Unlike the other clocks, this is not in nanoseconds.
 */
u64 notrace trace_clock_s390_tod(void)
{
	return get_tod_clock();
}

Annotation

Implementation Notes