diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2015-09-29 10:52:23 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2015-09-29 10:52:23 +0000 |
commit | 8342a6922e5585c4e5da844737d369b908547ef5 (patch) | |
tree | 1636e8d70819af05d38cd83f3dd9bde1be125a60 /lib/libcrypto | |
parent | 92683b4cd2239737acc851daf8ddce3a28404c40 (diff) |
get rid of the mutex between access to the status block and myx_down
myx is unusual in that it has an explicit command to shut down the
chip that gets an interrupt when it's done. so myx_down sends the
command and has to sleep until it gets that interrupt. this moves
to using a single int to represent that state (so loads and stores
are atomic), and sleep_setup/sleep_finish in myx_down to wait for
it to change.
this has been running in production at work for a few months now
tested by chris@
Diffstat (limited to 'lib/libcrypto')
0 files changed, 0 insertions, 0 deletions