summaryrefslogtreecommitdiff
path: root/arch/arm/kernel
diff options
context:
space:
mode:
authorLaura Abbott <lauraa@codeaurora.org>2014-08-13 14:52:53 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 11:16:00 -0700
commitc704acd5e08562a1bf0f417e2f0da2a83b399ed5 (patch)
tree6a6b517dfddd22df9bb8d100dfc15c4a267229ab /arch/arm/kernel
parent0f97d15b0b50eec556b2c9470255037de6a0fc9a (diff)
arm: Add weak function definition for random pool intialization
The random pool relies on devices and other items in the system to add entropy to the pool. Most of these devices may not be added until later in the bootup process. This leaves a large period of time where the random pool may not actually give random numbers. Add a weak function for devices to override with their own function to setup the random pool. Change-Id: I0de63420b11f1dd363ccd0ef6ac0fa4a617a1152 Signed-off-by: Laura Abbott <lauraa@codeaurora.org> [satyap: trivial merge conflict resolution] Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
Diffstat (limited to 'arch/arm/kernel')
-rw-r--r--arch/arm/kernel/setup.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c
index 6603fe697246..a0ebc3d8afbc 100644
--- a/arch/arm/kernel/setup.c
+++ b/arch/arm/kernel/setup.c
@@ -935,6 +935,8 @@ void __init hyp_mode_check(void)
#endif
}
+void __init __weak init_random_pool(void) { }
+
void __init setup_arch(char **cmdline_p)
{
const struct machine_desc *mdesc;
@@ -1014,6 +1016,8 @@ void __init setup_arch(char **cmdline_p)
if (mdesc->init_early)
mdesc->init_early();
+
+ init_random_pool();
}