[patch 35/38] s390: Select ARCH_HAS_RANDOM_ENTROPY

Heiko Carstens hca at linux.ibm.com
Thu Apr 16 23:42:38 AEST 2026


On Fri, Apr 10, 2026 at 02:21:19PM +0200, Thomas Gleixner wrote:
> The only remaining non-architecture usage of get_cycles() is to provide
> random_get_entropy().
> 
> Switch s390 over to the new scheme of selecting ARCH_HAS_RANDOM_ENTROPY and
> providing random_get_entropy() in asm/random.h.
> 
> Add 'asm/timex.h' includes to the relevant files, so the global include can
> be removed once all architectures are converted over.
> 
> Signed-off-by: Thomas Gleixner <tglx at kernel.org>
> Cc: Heiko Carstens <hca at linux.ibm.com>
> Cc: linux-s390 at vger.kernel.org
> ---
>  arch/s390/Kconfig              |    1 +
>  arch/s390/include/asm/random.h |   12 ++++++++++++
>  arch/s390/include/asm/timex.h  |    6 ------
>  arch/s390/kernel/time.c        |    1 +
>  arch/s390/kernel/vtime.c       |    1 +
>  5 files changed, 15 insertions(+), 6 deletions(-)

Acked-by: Heiko Carstens <hca at linux.ibm.com>

Thomas, would you mind adding the below as minor improvement to this
series?



More information about the Linuxppc-dev mailing list