Module Name:    src
Committed By:   yamt
Date:           Fri Apr  8 10:36:58 UTC 2011

Modified Files:
        src/sys/sys: userret.h

Log Message:
comment


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/sys/userret.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/sys/userret.h
diff -u src/sys/sys/userret.h:1.22 src/sys/sys/userret.h:1.23
--- src/sys/sys/userret.h:1.22	Fri Feb 25 22:37:12 2011
+++ src/sys/sys/userret.h	Fri Apr  8 10:36:58 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: userret.h,v 1.22 2011/02/25 22:37:12 yamt Exp $	*/
+/*	$NetBSD: userret.h,v 1.23 2011/04/08 10:36:58 yamt Exp $	*/
 
 /*-
  * Copyright (c) 1998, 2000, 2003, 2006, 2008 The NetBSD Foundation, Inc.
@@ -94,6 +94,13 @@
 	if (__predict_false(((l->l_flag & LW_USERRET) | p->p_timerpend) != 0))
 		lwp_userret(l);
 	l->l_kpriority = false;
+	/*
+	 * cpu_set_curpri(prio) is a MD optimized version of:
+	 *
+	 *	kpreempt_disable();
+	 *	curcpu()->ci_schedstate.spc_curpriority = prio;
+	 *	kpreempt_enable();
+	 */
 	cpu_set_curpri(l->l_priority);	/* XXX this needs to die */
 #else
 	ci = l->l_cpu;

Reply via email to