]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/kern/sched_average.c
xnu-3248.30.4.tar.gz
[apple/xnu.git] / osfmk / kern / sched_average.c
index b3edb3d9cc77acd72e13418bb5f4dda6bb94282d..a23ef953fe8f00de0a40a1c2ffd42e4ca66a9169 100644 (file)
@@ -75,7 +75,7 @@
 uint32_t       avenrun[3] = {0, 0, 0};
 uint32_t       mach_factor[3] = {0, 0, 0};
 
 uint32_t       avenrun[3] = {0, 0, 0};
 uint32_t       mach_factor[3] = {0, 0, 0};
 
-#if defined(CONFIG_SCHED_TRADITIONAL)
+#if defined(CONFIG_SCHED_TIMESHARE_CORE)
 /*
  * Values are scaled by LOAD_SCALE, defined in processor_info.h
  */
 /*
  * Values are scaled by LOAD_SCALE, defined in processor_info.h
  */
@@ -91,7 +91,7 @@ static uint32_t               fract[3] = {
 #undef base
 #undef frac
 
 #undef base
 #undef frac
 
-#endif /* CONFIG_SCHED_TRADITIONAL */
+#endif /* CONFIG_SCHED_TIMESHARE_CORE */
 
 static unsigned int            sched_nrun;
 
 
 static unsigned int            sched_nrun;
 
@@ -210,7 +210,7 @@ compute_averages(uint64_t stdelta)
         */
        sched_nrun = nthreads;
        
         */
        sched_nrun = nthreads;
        
-#if defined(CONFIG_SCHED_TRADITIONAL)
+#if defined(CONFIG_SCHED_TIMESHARE_CORE)
 
        /*
         *      The conversion factor consists of
 
        /*
         *      The conversion factor consists of
@@ -242,7 +242,7 @@ compute_averages(uint64_t stdelta)
                                                (average_now * (LOAD_SCALE - fract[i]))) / LOAD_SCALE;
                }
        }
                                                (average_now * (LOAD_SCALE - fract[i]))) / LOAD_SCALE;
                }
        }
-#endif /* CONFIG_SCHED_TRADITIONAL */
+#endif /* CONFIG_SCHED_TIMESHARE_CORE */
 
        /*
         *      Compute averages in other components.
 
        /*
         *      Compute averages in other components.