Konstantin Belousov 0436fcb809 When sleeping waiting for the profiling stop, always set P_STOPPROF
before dropping process lock.  Clear P_STOPPROF when doing wakeup.

Both issues caused thread to hang in stopprofclock() "stopprof" sleep.

Reported and tested by:	pho
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
2014-11-10 14:11:17 +00:00
..
2014-11-10 08:20:21 +00:00
2014-11-10 08:20:21 +00:00
2014-10-12 18:01:52 +00:00
2014-09-25 19:10:32 +00:00
2014-11-07 20:15:23 +00:00
2014-09-23 06:32:19 +00:00