Print this page
6583 remove whole-process swapping

@@ -25,12 +25,10 @@
  */
 
 /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
 /*        All Rights Reserved   */
 
-#pragma ident   "%Z%%M% %I%     %E% SMI"        /* from SVr4.0 1.12 */
-
 #include <sys/types.h>
 #include <sys/param.h>
 #include <sys/sysmacros.h>
 #include <sys/signal.h>
 #include <sys/pcb.h>

@@ -64,11 +62,10 @@
 static int      sys_nosys();
 static int      sys_donice(kthread_t *, cred_t *, int, int *);
 static int      sys_doprio(kthread_t *, cred_t *, int, int *);
 static void     sys_forkret(kthread_t *, kthread_t *);
 static void     sys_nullsys();
-static pri_t    sys_swappri(kthread_t *, int);
 static int      sys_alloc(void **, int);
 
 struct classfuncs sys_classfuncs = {
         /* messages to class manager */
         {

@@ -93,12 +90,10 @@
                 sys_nosys,      /* parmsset */
                 sys_nullsys,    /* stop */
                 sys_nullsys,    /* exit */
                 sys_nullsys,    /* active */
                 sys_nullsys,    /* inactive */
-                sys_swappri,    /* swapin */
-                sys_swappri,    /* swapout */
                 sys_nullsys,    /* trapret */
                 setfrontdq,     /* preempt */
                 setbackdq,      /* setrun */
                 sys_nullsys,    /* sleep */
                 sys_nullsys,    /* tick */

@@ -192,19 +187,10 @@
         mutex_enter(&pp->p_lock);
         continuelwps(pp);
         mutex_exit(&pp->p_lock);
 }
 
-/* ARGSUSED */
-static pri_t
-sys_swappri(t, flags)
-        kthread_t       *t;
-        int             flags;
-{
-        return (-1);
-}
-
 static int
 sys_nosys()
 {
         return (ENOSYS);
 }