powerpc/pseries: Implement arch_get_random_long() based on H_RANDOM
authorMichael Ellerman <michael@ellerman.id.au>
Fri, 11 Oct 2013 03:07:59 +0000 (14:07 +1100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 11 Oct 2013 05:50:21 +0000 (16:50 +1100)
commita489043f462639988f86c1cf49475580e9dba965
treebbd0a84b5755f096962aab9b3a36662bc3294846
parent66548e40583b1470300341c6784fdc5176f7609f
powerpc/pseries: Implement arch_get_random_long() based on H_RANDOM

Add support for the arch_get_random_long() hook based on the H_RANDOM
hypervisor call. We trust the hypervisor to provide us with random data,
ie. we don't whiten it in anyway.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/pseries/Makefile
arch/powerpc/platforms/pseries/rng.c [new file with mode: 0644]