From: Michael Ellerman Date: Fri, 11 Oct 2013 03:07:57 +0000 (+1100) Subject: powerpc: Implement arch_get_random_long/int() for powernv X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~19^2~67 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4da0d50b2a00b79390092e6248ca88b7d93c81d;p=pandora-kernel.git 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 Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed