]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb42ea56c3f66989c7513c108bddea8549f8d27b7
treebbd0a84b5755f096962aab9b3a36662bc3294846
parent58868f34f6f9707babbe2412345da91728ef0aaf
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]