forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
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