From owner-svn-src-all@freebsd.org Tue May 10 22:25:56 2016 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B4167B36077; Tue, 10 May 2016 22:25:56 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 849A71159; Tue, 10 May 2016 22:25:56 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u4AMPtbi097198; Tue, 10 May 2016 22:25:55 GMT (envelope-from jhb@FreeBSD.org) Received: (from jhb@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u4AMPtOX097197; Tue, 10 May 2016 22:25:55 GMT (envelope-from jhb@FreeBSD.org) Message-Id: <201605102225.u4AMPtOX097197@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jhb set sender to jhb@FreeBSD.org using -f From: John Baldwin Date: Tue, 10 May 2016 22:25:55 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r299391 - head/sys/vm X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 May 2016 22:25:56 -0000 Author: jhb Date: Tue May 10 22:25:55 2016 New Revision: 299391 URL: https://svnweb.freebsd.org/changeset/base/299391 Log: Move vm_domain_rr_selectdomain() under #ifdef VM_NUMA_ALLOC. The function had a null function body in the !VM_NUMA_ALLOC case but also wasn't called in the !VM_NUMA_ALLOC case. Suggested by: ngie Modified: head/sys/vm/vm_domain.c Modified: head/sys/vm/vm_domain.c ============================================================================== --- head/sys/vm/vm_domain.c Tue May 10 21:12:32 2016 (r299390) +++ head/sys/vm/vm_domain.c Tue May 10 22:25:55 2016 (r299391) @@ -61,10 +61,10 @@ __FBSDID("$FreeBSD$"); #include +#ifdef VM_NUMA_ALLOC static __inline int vm_domain_rr_selectdomain(int skip_domain) { -#ifdef VM_NUMA_ALLOC struct thread *td; td = curthread; @@ -82,10 +82,8 @@ vm_domain_rr_selectdomain(int skip_domai td->td_dom_rr_idx %= vm_ndomains; } return (td->td_dom_rr_idx); -#else - return (0); -#endif } +#endif /* * This implements a very simple set of VM domain memory allocation