diff options
author | 2023-08-07 23:12:29 -0500 | |
---|---|---|
committer | 2023-08-09 10:05:15 -0700 | |
commit | cacc6e22932f373a91d7be55a9b992dc77f4c59b (patch) | |
tree | 809cfcaf78a8c97414268a9d48b3fd28997d1e9d /tools/perf/scripts/python/syscall-counts.py | |
parent | mm: Fix access_remote_vm() regression on tagged addresses (diff) | |
download | wireguard-linux-cacc6e22932f373a91d7be55a9b992dc77f4c59b.tar.xz wireguard-linux-cacc6e22932f373a91d7be55a9b992dc77f4c59b.zip |
tpm: Add a helper for checking hwrng enabled
The same checks are repeated in three places to decide whether to use
hwrng. Consolidate these into a helper.
Also this fixes a case that one of them was missing a check in the
cleanup path.
Fixes: 554b841d4703 ("tpm: Disable RNG for all AMD fTPMs")
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions