Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/uvm Use lwp_changepri().



details:   https://anonhg.NetBSD.org/src/rev/1f76d910772d
branches:  trunk
changeset: 1004926:1f76d910772d
user:      ad <ad%NetBSD.org@localhost>
date:      Thu Nov 21 17:47:53 2019 +0000

description:
Use lwp_changepri().

diffstat:

 sys/uvm/uvm_glue.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 778c8f284373 -r 1f76d910772d sys/uvm/uvm_glue.c
--- a/sys/uvm/uvm_glue.c        Thu Nov 21 17:47:23 2019 +0000
+++ b/sys/uvm/uvm_glue.c        Thu Nov 21 17:47:53 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_glue.c,v 1.169 2019/11/14 16:48:51 maxv Exp $      */
+/*     $NetBSD: uvm_glue.c,v 1.170 2019/11/21 17:47:53 ad Exp $        */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -62,7 +62,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_glue.c,v 1.169 2019/11/14 16:48:51 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_glue.c,v 1.170 2019/11/21 17:47:53 ad Exp $");
 
 #include "opt_kgdb.h"
 #include "opt_kstack.h"
@@ -496,8 +496,8 @@
        lwp_t *l = curlwp;
 
        lwp_lock(l);
-       l->l_priority = PRI_VM;
        l->l_class = SCHED_FIFO;
+       lwp_changepri(l, PRI_VM);
        lwp_unlock(l);
 
        for (;;) {



Home | Main Index | Thread Index | Old Index