]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC (revision 1.6)
authorariff <ariff@FreeBSD.org>
Tue, 4 Apr 2006 17:24:33 +0000 (17:24 +0000)
committerariff <ariff@FreeBSD.org>
Tue, 4 Apr 2006 17:24:33 +0000 (17:24 +0000)
commitaf646f32bafa27449607c502b3146e14bdae3bff
tree31e29d81a232c9d5276d4e57a5a08acbd5b9cef9
parenta277c3add0337d7564f20c348aebbe35a0ff6904
MFC (revision 1.6)
Misc. fixups:

- [1] Make the driver friendly towards kernel without PREEMPTION.
  Use msleep(9) instead of simple unlock-check_variable-lock
  mechanisme since the later not really effective in non-preemptible
  kernel (especially during codec detection routine).
- Free most driver resources in a sane manner to avoid possible
  double free and panics especially during device detach and codec
  detection failure.

Approved by: re (scottl)

[1] http://lists.freebsd.org/pipermail/freebsd-questions/2006-March/116515.html
sys/dev/sound/pci/atiixp.c