From owner-svn-src-stable@FreeBSD.ORG Mon May 14 13:49:06 2012 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 99816106564A; Mon, 14 May 2012 13:49:06 +0000 (UTC) (envelope-from pluknet@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 828908FC0A; Mon, 14 May 2012 13:49:06 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q4EDn6V6035747; Mon, 14 May 2012 13:49:06 GMT (envelope-from pluknet@svn.freebsd.org) Received: (from pluknet@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q4EDn6ZJ035745; Mon, 14 May 2012 13:49:06 GMT (envelope-from pluknet@svn.freebsd.org) Message-Id: <201205141349.q4EDn6ZJ035745@svn.freebsd.org> From: Sergey Kandaurov Date: Mon, 14 May 2012 13:49:06 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org X-SVN-Group: stable-9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r235440 - stable/9/sys/ddb X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2012 13:49:06 -0000 Author: pluknet Date: Mon May 14 13:49:06 2012 New Revision: 235440 URL: http://svn.freebsd.org/changeset/base/235440 Log: MFC r228687: Use FOREACH_PROC_IN_SYSTEM instead of using its unrolled form. Modified: stable/9/sys/ddb/db_ps.c Directory Properties: stable/9/sys/ (props changed) Modified: stable/9/sys/ddb/db_ps.c ============================================================================== --- stable/9/sys/ddb/db_ps.c Mon May 14 12:13:50 2012 (r235439) +++ stable/9/sys/ddb/db_ps.c Mon May 14 13:49:06 2012 (r235440) @@ -447,7 +447,7 @@ db_findstack_cmd(db_expr_t addr, boolean return; } - for (p = LIST_FIRST(&allproc); p != NULL; p = LIST_NEXT(p, p_list)) { + FOREACH_PROC_IN_SYSTEM(p) { FOREACH_THREAD_IN_PROC(p, td) { if (td->td_kstack <= saddr && saddr < td->td_kstack + PAGE_SIZE * td->td_kstack_pages) {