arch/parisc/include/asm/timex.h

Source file repositories/reference/linux-study-clean/arch/parisc/include/asm/timex.h

File Facts

System
Linux kernel
Corpus path
arch/parisc/include/asm/timex.h
Extension
.h
Size
403 bytes
Lines
23
Domain
Architecture Layer
Bucket
arch/parisc
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

#ifndef _ASMPARISC_TIMEX_H
#define _ASMPARISC_TIMEX_H

#include <asm/special_insns.h>

#define CLOCK_TICK_RATE	1193180 /* Underlying HZ */

typedef unsigned long cycles_t;

static inline cycles_t get_cycles(void)
{
	return mfctl(16);
}
#define get_cycles get_cycles

#endif

Annotation

Implementation Notes