diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2013-10-10 23:07:57 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-10-11 01:50:19 -0400 |
commit | a4da0d50b2a00b79390092e6248ca88b7d93c81d (patch) | |
tree | 4a481f28de594306b612938e037dd015114c2fd7 /arch/powerpc/Kconfig | |
parent | f95dabef4c70e27e5114f4802fe6234ff82ce406 (diff) |
powerpc: Implement arch_get_random_long/int() for powernv
Add the plumbing to implement arch_get_random_long/int(). It didn't seem
worth adding an extra ppc_md hook for int, so we reuse the one for long.
Add an implementation for powernv based on the hwrng found in power7+
systems. We whiten the output of the hwrng, and the result passes all
the dieharder tests.
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/Kconfig')
-rw-r--r-- | arch/powerpc/Kconfig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index c5a868bc7aa4..875d815a8e7f 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig | |||
@@ -1012,6 +1012,9 @@ config PHYSICAL_START | |||
1012 | default "0x00000000" | 1012 | default "0x00000000" |
1013 | endif | 1013 | endif |
1014 | 1014 | ||
1015 | config ARCH_RANDOM | ||
1016 | def_bool n | ||
1017 | |||
1015 | source "net/Kconfig" | 1018 | source "net/Kconfig" |
1016 | 1019 | ||
1017 | source "drivers/Kconfig" | 1020 | source "drivers/Kconfig" |