HomeFreeBSD

tpm: Fix entropy harvesting logic

Description

tpm: Fix entropy harvesting logic

Use a taskqueue instead of a callout.
Callout functions mustn't sleep, where as the TPM driver
uses a sx lock in order to serialize accesses to the device.
Since the entropy harvesting feature is not enabled by default,
this commit should not bring any functional changes to the GENERIC
kernel.

Approved by: mw(mentor)
Sponsored by: Stormshield
Obtained from: Semihalf
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D36412

Details

Provenance
kdAuthored on Sep 2 2022, 11:07 AM
Differential Revision
D36412: tpm: Fix entropy harvesting logic
Parents
rG2486b446db82: ds1307: add support for the EPSON RX-8035SA I2C RTC
Branches
Unknown
Tags
Unknown