Fixing audio/oss to use callout instead of timeouts
Chris Rees
crees at FreeBSD.org
Thu Jan 2 23:47:48 UTC 2020
Hi Hackers (and perhaps John, as the author of r355732, sorry for the duplicate),
I've attempted to use the callout functions instead of the now removed timeout functions for audio/oss, and I *think* that the code already stores and retrieves the list of handlers, so it should be a simple swap out.
I've made this modification and run the module with mpg123 for a while and it hasn't killed my laptop, but I'd just like to check that I have the principle correct and haven't missed anything obvious.
Please would you let me know if there is anything else I should have done?
https://www.bayofrum.net/cgi-bin/fossil/oss/vinfo/ad269d7cbc02bf38?diff=2
(This is the change I've made to kernel/OS/FreeBSD/os_freebsd.c in oss)
https://www.bayofrum.net/cgi-bin/fossil/oss/vinfo/ad269d7cbc02bf38?diff=2&dc=9999
(This is the whole file with changes highlighted.)
Thanks!
Chris
https://reviews.freebsd.org/rS355732
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the freebsd-hackers
mailing list