Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / arch / loongarch / include / asm / timex.h
blobfb41e9e7a222cb9570adc6b3909391bfed50d82d
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
4 */
5 #ifndef _ASM_TIMEX_H
6 #define _ASM_TIMEX_H
8 #ifdef __KERNEL__
10 #include <linux/compiler.h>
12 #include <asm/cpu.h>
13 #include <asm/cpu-features.h>
15 typedef unsigned long cycles_t;
17 #define get_cycles get_cycles
19 static inline cycles_t get_cycles(void)
21 return drdtime();
24 #endif /* __KERNEL__ */
26 #endif /* _ASM_TIMEX_H */