diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/sched.h | 4 | ||||
-rw-r--r-- | include/linux/topology.h | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 2c69682b0444..664981ac1fb6 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -488,6 +488,10 @@ struct sched_domain { | |||
488 | unsigned long long cache_hot_time; /* Task considered cache hot (ns) */ | 488 | unsigned long long cache_hot_time; /* Task considered cache hot (ns) */ |
489 | unsigned int cache_nice_tries; /* Leave cache hot tasks for # tries */ | 489 | unsigned int cache_nice_tries; /* Leave cache hot tasks for # tries */ |
490 | unsigned int per_cpu_gain; /* CPU % gained by adding domain cpus */ | 490 | unsigned int per_cpu_gain; /* CPU % gained by adding domain cpus */ |
491 | unsigned int busy_idx; | ||
492 | unsigned int idle_idx; | ||
493 | unsigned int newidle_idx; | ||
494 | unsigned int wake_idx; | ||
491 | int flags; /* See SD_* */ | 495 | int flags; /* See SD_* */ |
492 | 496 | ||
493 | /* Runtime fields. */ | 497 | /* Runtime fields. */ |
diff --git a/include/linux/topology.h b/include/linux/topology.h index d70e8972c67f..ae9c2216dfa6 100644 --- a/include/linux/topology.h +++ b/include/linux/topology.h | |||
@@ -89,6 +89,10 @@ | |||
89 | .cache_hot_time = 0, \ | 89 | .cache_hot_time = 0, \ |
90 | .cache_nice_tries = 0, \ | 90 | .cache_nice_tries = 0, \ |
91 | .per_cpu_gain = 25, \ | 91 | .per_cpu_gain = 25, \ |
92 | .busy_idx = 0, \ | ||
93 | .idle_idx = 0, \ | ||
94 | .newidle_idx = 0, \ | ||
95 | .wake_idx = 0, \ | ||
92 | .flags = SD_LOAD_BALANCE \ | 96 | .flags = SD_LOAD_BALANCE \ |
93 | | SD_BALANCE_NEWIDLE \ | 97 | | SD_BALANCE_NEWIDLE \ |
94 | | SD_BALANCE_EXEC \ | 98 | | SD_BALANCE_EXEC \ |
@@ -115,6 +119,10 @@ | |||
115 | .cache_hot_time = (5*1000000/2), \ | 119 | .cache_hot_time = (5*1000000/2), \ |
116 | .cache_nice_tries = 1, \ | 120 | .cache_nice_tries = 1, \ |
117 | .per_cpu_gain = 100, \ | 121 | .per_cpu_gain = 100, \ |
122 | .busy_idx = 2, \ | ||
123 | .idle_idx = 0, \ | ||
124 | .newidle_idx = 1, \ | ||
125 | .wake_idx = 1, \ | ||
118 | .flags = SD_LOAD_BALANCE \ | 126 | .flags = SD_LOAD_BALANCE \ |
119 | | SD_BALANCE_NEWIDLE \ | 127 | | SD_BALANCE_NEWIDLE \ |
120 | | SD_BALANCE_EXEC \ | 128 | | SD_BALANCE_EXEC \ |