Source-Changes-HG archive

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

[src/trunk]: src/sys/sys Add a comment.



details:   https://anonhg.NetBSD.org/src/rev/9802aaaa8dda
branches:  trunk
changeset: 966934:9802aaaa8dda
user:      ad <ad%NetBSD.org@localhost>
date:      Fri Nov 22 23:38:15 2019 +0000

description:
Add a comment.

diffstat:

 sys/sys/userret.h |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 9abd4dc38717 -r 9802aaaa8dda sys/sys/userret.h
--- a/sys/sys/userret.h Fri Nov 22 23:36:25 2019 +0000
+++ b/sys/sys/userret.h Fri Nov 22 23:38:15 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: userret.h,v 1.29 2019/11/21 19:24:02 ad Exp $  */
+/*     $NetBSD: userret.h,v 1.30 2019/11/22 23:38:15 ad Exp $  */
 
 /*-
  * Copyright (c) 1998, 2000, 2003, 2006, 2008, 2019 The NetBSD Foundation, Inc.
@@ -101,6 +101,12 @@
                ci = l->l_cpu;
        }
        l->l_kpriority = false;
+       /*
+        * lwp_eprio() is too involved to use here unlocked.  At this point
+        * it only matters for PTHREAD_PRIO_PROTECT; setting a too low value
+        * is OK because the scheduler will find out the true value if we
+        * end up in mi_switch().
+        */
        ci->ci_schedstate.spc_curpriority = l->l_priority;
        KPREEMPT_ENABLE(l);
 



Home | Main Index | Thread Index | Old Index