From f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Wed, 31 Jan 2024 01:04:47 +0000
Subject: [PATCH] add driver 5G
---
kernel/arch/arm/include/asm/timex.h | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/kernel/arch/arm/include/asm/timex.h b/kernel/arch/arm/include/asm/timex.h
index f6fcc67..6d1337c 100644
--- a/kernel/arch/arm/include/asm/timex.h
+++ b/kernel/arch/arm/include/asm/timex.h
@@ -1,11 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
/*
* arch/arm/include/asm/timex.h
*
* Copyright (C) 1997,1998 Russell King
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
*
* Architecture Specific TIME specifications
*/
@@ -14,5 +11,6 @@
typedef unsigned long cycles_t;
#define get_cycles() ({ cycles_t c; read_current_timer(&c) ? 0 : c; })
+#define random_get_entropy() (((unsigned long)get_cycles()) ?: random_get_entropy_fallback())
#endif
--
Gitblit v1.6.2