Print this page
6583 remove whole-process swapping
@@ -221,15 +221,10 @@
* Mark the time when thread is placed on wait queue. The microstate
* accounting code uses this timestamp to determine wait times.
*/
t->t_waitrq = gethrtime_unscaled();
- /*
- * Mark thread as not swappable. If necessary, it will get
- * swapped out when it returns to the userland.
- */
- t->t_schedflag |= TS_DONT_SWAP;
DTRACE_SCHED1(cpucaps__sleep, kthread_t *, t);
waitq_link(wq, t);
THREAD_WAIT(t, &wq->wq_lock);
return (1);