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
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to