Merge tag 'x86-urgent-2025-01-28' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux.git] / arch / s390 / crypto / arch_random.c
bloba8a2407381afad6c30a75de836b23d61ee0a740b
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * s390 arch random implementation.
5 * Copyright IBM Corp. 2017, 2020
6 * Author(s): Harald Freudenberger
7 */
9 #include <linux/kernel.h>
10 #include <linux/atomic.h>
11 #include <linux/random.h>
12 #include <linux/static_key.h>
13 #include <asm/archrandom.h>
14 #include <asm/cpacf.h>
16 DEFINE_STATIC_KEY_FALSE(s390_arch_random_available);
18 atomic64_t s390_arch_random_counter = ATOMIC64_INIT(0);
19 EXPORT_SYMBOL(s390_arch_random_counter);