timex.h (498495dba268b20e8eadd7fe93c140c68b6cc9d2) timex.h (b3545192e2b4647234254c5122f8cbfddbcbdaa0)
1/* 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
1/* 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
10#include <asm/special_insns.h>
10
11#define CLOCK_TICK_RATE 1193180 /* Underlying HZ */
12
13typedef unsigned long cycles_t;
14
15static inline cycles_t get_cycles (void)
16{
17 return mfctl(16);
18}
19
20#endif
11
12#define CLOCK_TICK_RATE 1193180 /* Underlying HZ */
13
14typedef unsigned long cycles_t;
15
16static inline cycles_t get_cycles (void)
17{
18 return mfctl(16);
19}
20
21#endif