1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-13 14:40:22 +00:00

Add another 5.2.1 source compatibility tweak: acquire Giant before calling

kthread_exit() if FreeBSD_version is old enough.
This commit is contained in:
Bill Paul 2004-06-07 01:22:48 +00:00
parent 9d780a43c4
commit bd610e47e2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=130166
2 changed files with 6 additions and 0 deletions

View File

@ -244,6 +244,9 @@ ndis_runq(arg)
}
wakeup(die);
#if __FreeBSD_version < 502113
mtx_lock(&Giant);
#endif
kthread_exit(0);
return; /* notreached */
}

View File

@ -1609,6 +1609,9 @@ ntoskrnl_thread_exit(status)
ntoskrnl_kth--;
#if __FreeBSD_version < 502113
mtx_lock(&Giant);
#endif
kthread_exit(0);
return(0); /* notreached */
}