kernel_optimize_test/arch/sparc
Jason A. Donenfeld e1ea0e26d3 sparc: use fallback for random_get_entropy() instead of zero
commit ac9756c79797bb98972736b13cfb239fd2cffb79 upstream.

In the event that random_get_entropy() can't access a cycle counter or
similar, falling back to returning 0 is really not the best we can do.
Instead, at least calling random_get_entropy_fallback() would be
preferable, because that always needs to return _something_, even
falling back to jiffies eventually. It's not as though
random_get_entropy_fallback() is super high precision or guaranteed to
be entropic, but basically anything that's not zero all the time is
better than returning zero all the time.

This is accomplished by just including the asm-generic code like on
other architectures, which means we can get rid of the empty stub
function here.

Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-05-30 09:33:42 +02:00
..
boot
configs
crypto crypto: sparc - rename sha256 to sha256_alg 2020-07-16 21:49:04 +10:00
include sparc: use fallback for random_get_entropy() instead of zero 2022-05-30 09:33:42 +02:00
kernel uaccess: fix type mismatch warnings from access_ok() 2022-04-08 14:40:35 +02:00
lib sparc64: fix pci_iounmap() when CONFIG_PCI is not set 2021-10-09 14:40:56 +02:00
math-emu treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
mm sparc32: Limit memblock allocation to low memory 2021-03-17 17:06:24 +01:00
net bpf: Introduce BPF nospec instruction for mitigating Spectre v4 2021-08-04 12:46:44 +02:00
oprofile
power
prom
vdso treewide: remove DISABLE_LTO 2020-10-21 00:28:53 +09:00
Kbuild
Kconfig sparc64: only select COMPAT_BINFMT_ELF if BINFMT_ELF is set 2021-03-04 11:38:10 +01:00
Kconfig.debug
Makefile