Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / arch / nios2 / include / asm / timex.h
blob40a1adc9bd03e9a62c05911bf30befa10b75b0e2
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* Copyright Altera Corporation (C) 2014. All rights reserved.
3 */
5 #ifndef _ASM_NIOS2_TIMEX_H
6 #define _ASM_NIOS2_TIMEX_H
8 typedef unsigned long cycles_t;
10 extern cycles_t get_cycles(void);
11 #define get_cycles get_cycles
13 #define random_get_entropy() (((unsigned long)get_cycles()) ?: random_get_entropy_fallback())
15 #endif