summaryrefslogtreecommitdiff
path: root/arch/arm/include
diff options
context:
space:
mode:
authorLaura Abbott <lauraa@codeaurora.org>2014-08-13 15:24:38 -0700
committerOlav Haugan <ohaugan@codeaurora.org>2016-10-08 10:43:21 -0700
commited1a203f6f2c4a2fc4a2d9135cd9669aef23e428 (patch)
tree147bb6af05f7539dd00c6299b04fe6d5da775d0b /arch/arm/include
parentfb25c8b683babfc18e583f634fb95a5fac7e12ef (diff)
soc: qcom: Add better support for early random numbers
The existing support for generating random numbers relied on a hacked up version of CONFIG_ARCH_RANDOM and was prone to scheduling while atomic bugs due to needing to take a mutex. We don't actually need the additional randomness all the time, the pool just needs to be initialized with some amount of random data to avoid getting the same result each time. Switch to this method for initializing the random pool. Change-Id: I804ec7556cbd18ff2d9869a03069fda1dd519a79 Signed-off-by: Laura Abbott <lauraa@codeaurora.org> [ohaugan@codeaurora.org: Fixed trivial merge conflicts] Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
Diffstat (limited to 'arch/arm/include')
-rw-r--r--arch/arm/include/asm/archrandom.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/arch/arm/include/asm/archrandom.h b/arch/arm/include/asm/archrandom.h
deleted file mode 100644
index 5530d450a098..000000000000
--- a/arch/arm/include/asm/archrandom.h
+++ /dev/null
@@ -1,20 +0,0 @@
-/* Copyright (c) 2013, The Linux Foundation. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 and
- * only version 2 as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- */
-
-#ifndef ARM_ASM_ARCHRANDOM_H
-#define ARM_ASM_ARCHRANDOM_H
-
-extern int arch_get_random_long(unsigned long *v);
-extern int arch_get_random_int(unsigned int *v);
-
-#endif