svn commit: r259875 - head/sys/kern

Dimitry Andric dim at FreeBSD.org
Wed Dec 25 16:25:54 UTC 2013


Author: dim
Date: Wed Dec 25 16:25:54 2013
New Revision: 259875
URL: http://svnweb.freebsd.org/changeset/base/259875

Log:
  In sys/kern/sched_ule.c, remove static function sched_both(), which is
  unused since r232207.
  
  MFC after:	3 days

Modified:
  head/sys/kern/sched_ule.c

Modified: head/sys/kern/sched_ule.c
==============================================================================
--- head/sys/kern/sched_ule.c	Wed Dec 25 16:14:02 2013	(r259874)
+++ head/sys/kern/sched_ule.c	Wed Dec 25 16:25:54 2013	(r259875)
@@ -813,30 +813,6 @@ sched_highest(const struct cpu_group *cg
 	return high.cs_cpu;
 }
 
-/*
- * Simultaneously find the highest and lowest loaded cpu reachable via
- * cg.
- */
-static inline void
-sched_both(const struct cpu_group *cg, cpuset_t mask, int *lowcpu, int *highcpu)
-{
-	struct cpu_search high;
-	struct cpu_search low;
-
-	low.cs_cpu = -1;
-	low.cs_prefer = -1;
-	low.cs_pri = -1;
-	low.cs_limit = INT_MAX;
-	low.cs_mask = mask;
-	high.cs_cpu = -1;
-	high.cs_limit = -1;
-	high.cs_mask = mask;
-	cpu_search_both(cg, &low, &high);
-	*lowcpu = low.cs_cpu;
-	*highcpu = high.cs_cpu;
-	return;
-}
-
 static void
 sched_balance_group(struct cpu_group *cg)
 {


More information about the svn-src-head mailing list