blob: b4622cb06a75e36a45e368d5d7d82bb787a553a9 [file] [log] [blame]
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00001/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * linux/include/asm-parisc/timex.h
4 *
5 * PARISC architecture timex specifications
6 */
7#ifndef _ASMPARISC_TIMEX_H
8#define _ASMPARISC_TIMEX_H
9
Olivier Deprez157378f2022-04-04 15:47:50 +020010#include <asm/special_insns.h>
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000011
12#define CLOCK_TICK_RATE 1193180 /* Underlying HZ */
13
14typedef unsigned long cycles_t;
15
Olivier Deprez92d4c212022-12-06 15:05:30 +010016static inline cycles_t get_cycles(void)
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000017{
18 return mfctl(16);
19}
Olivier Deprez92d4c212022-12-06 15:05:30 +010020#define get_cycles get_cycles
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000021
22#endif