hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/arch/arm/include/asm/timex.h
....@@ -1,11 +1,8 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * arch/arm/include/asm/timex.h
34 *
45 * Copyright (C) 1997,1998 Russell King
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License version 2 as
8
- * published by the Free Software Foundation.
96 *
107 * Architecture Specific TIME specifications
118 */
....@@ -14,5 +11,6 @@
1411
1512 typedef unsigned long cycles_t;
1613 #define get_cycles() ({ cycles_t c; read_current_timer(&c) ? 0 : c; })
14
+#define random_get_entropy() (((unsigned long)get_cycles()) ?: random_get_entropy_fallback())
1715
1816 #endif