From 01573e231f18eb2d99162747186f59511f56b64d Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Fri, 08 Dec 2023 10:40:48 +0000 Subject: [PATCH] 移去rt --- 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