Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Jul 2002 16:17:22 -0700 (PDT)
From:      Peter Wemm <peter@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 14162 for review
Message-ID:  <200207122317.g6CNHMYU027031@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=14162

Change 14162 by peter@peter_xeon on 2002/07/12 16:16:30

	cosmetic tweaks

Affected files ...

.. //depot/projects/pmap/sys/vm/vm_zeroidle.c#6 edit

Differences ...

==== //depot/projects/pmap/sys/vm/vm_zeroidle.c#6 (text+ko) ====

@@ -112,20 +112,23 @@
 static void
 vm_pagezero(void)
 {
-	struct thread *td = curthread;
+	struct thread *td;
+	struct proc *p;
 	struct rtprio rtp;
 	int pages = 0;
 	int pri;
 
+	td = curthread;
+	p = td->td_proc;
 	rtp.prio = RTP_PRIO_MAX;
 	rtp.type = RTP_PRIO_IDLE;
 	mtx_lock_spin(&sched_lock);
 	rtp_to_pri(&rtp, td->td_ksegrp);
 	pri = td->td_priority;
 	mtx_unlock_spin(&sched_lock);
-	PROC_LOCK(td->td_proc);
-	td->td_proc->p_flag |= P_NOLOAD;
-	PROC_UNLOCK(td->td_proc);
+	PROC_LOCK(p);
+	p->p_flag |= P_NOLOAD;
+	PROC_UNLOCK(p);
 
 	for (;;) {
 		if (vm_page_zero_check()) {

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207122317.g6CNHMYU027031>