From owner-p4-projects Fri Jul 12 16:17:28 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 4BFE937B400; Fri, 12 Jul 2002 16:17:24 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CBAFE37B401 for ; Fri, 12 Jul 2002 16:17:23 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4111B43E4A for ; Fri, 12 Jul 2002 16:17:23 -0700 (PDT) (envelope-from peter@freebsd.org) Received: from freefall.freebsd.org (perforce@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g6CNHNJU027034 for ; Fri, 12 Jul 2002 16:17:23 -0700 (PDT) (envelope-from peter@freebsd.org) Received: (from perforce@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g6CNHMYU027031 for perforce@freebsd.org; Fri, 12 Jul 2002 16:17:22 -0700 (PDT) Date: Fri, 12 Jul 2002 16:17:22 -0700 (PDT) Message-Id: <200207122317.g6CNHMYU027031@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to peter@freebsd.org using -f From: Peter Wemm Subject: PERFORCE change 14162 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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