Date: Tue, 10 May 2016 22:25:55 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r299391 - head/sys/vm Message-ID: <201605102225.u4AMPtOX097197@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <vm/vm_domain.h> +#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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605102225.u4AMPtOX097197>