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/943422c0e146
branches:  trunk
changeset: 461271:943422c0e146
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 120ba0ad4969 -r 943422c0e146 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