xref: /linux/arch/m68k/include/asm/timex.h (revision 570f7e331f5febb30f1384817463c7e42b65ca7d)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * linux/include/asm-m68k/timex.h
4  *
5  * m68k architecture timex specifications
6  */
7 #ifndef _ASMm68K_TIMEX_H
8 #define _ASMm68K_TIMEX_H
9 
10 typedef unsigned long cycles_t;
11 
12 static inline cycles_t get_cycles(void)
13 {
14 	return 0;
15 }
16 
17 extern unsigned long (*mach_random_get_entropy)(void);
18 
19 static inline unsigned long random_get_entropy(void)
20 {
21 	if (mach_random_get_entropy)
22 		return mach_random_get_entropy();
23 	return random_get_entropy_fallback();
24 }
25 #define random_get_entropy	random_get_entropy
26 
27 #endif
28