linux/arch/xtensa
Jason A. Donenfeld e10e2f5803 xtensa: use fallback for random_get_entropy() instead of zero
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>
Acked-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2022-05-13 23:59:23 +02:00
..
boot xtensa: fix DTC warning unit_address_format 2022-03-17 02:55:47 -07:00
configs rcu: Fix undefined Kconfig macros 2021-09-13 16:32:46 -07:00
include xtensa: use fallback for random_get_entropy() instead of zero 2022-05-13 23:59:23 +02:00
kernel xtensa: fix a7 clobbering in coprocessor context load/store 2022-04-15 18:44:02 -07:00
lib xtensa: add helpers for division, remainder and shifts 2022-03-09 14:02:40 -08:00
mm xtensa: define update_mmu_tlb function 2022-03-22 09:45:09 -07:00
platforms arch: xtensa: platforms: Fix deadlock in rs_close() 2022-04-13 03:36:34 -07:00
variants
Kbuild xtensa: move core-y in arch/xtensa/Makefile to arch/xtensa/Kbuild 2021-08-11 11:37:13 -07:00
Kconfig dma-mapping updates for Linux 5.18 2022-03-29 08:50:14 -07:00
Kconfig.debug xtensa: make stack dump size configurable 2019-11-26 11:33:39 -08:00
Makefile xtensa: add kernel ABI selection to Kconfig 2022-03-09 14:16:35 -08:00