Merge tag 'gpio-fixes-for-v5.19-rc6' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-block.git] / arch / s390 / crypto / arch_random.c
CommitLineData
20a884f5 1// SPDX-License-Identifier: GPL-2.0
4c637cd8
HF
2/*
3 * s390 arch random implementation.
4 *
ff98cc98 5 * Copyright IBM Corp. 2017, 2020
966f53e7 6 * Author(s): Harald Freudenberger
4c637cd8
HF
7 */
8
9#include <linux/kernel.h>
10#include <linux/atomic.h>
92acfb74 11#include <linux/random.h>
4c637cd8
HF
12#include <linux/static_key.h>
13#include <asm/cpacf.h>
14
15DEFINE_STATIC_KEY_FALSE(s390_arch_random_available);
16
17atomic64_t s390_arch_random_counter = ATOMIC64_INIT(0);
18EXPORT_SYMBOL(s390_arch_random_counter);