Staging
v0.8.1
https://github.com/torvalds/linux
Raw File
Tip revision: 05d3ef8bba77c1b5f98d941d8b2d4aeab8118ef1 authored by Linus Torvalds on 22 October 2023, 22:11:21 UTC
Linux 6.6-rc7
Tip revision: 05d3ef8
timex.h
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * linux/include/asm-parisc/timex.h
 *
 * PARISC architecture timex specifications
 */
#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
back to top