diff options
| -rw-r--r-- | arch/s390/Kconfig | 4 | ||||
| -rw-r--r-- | kernel/sched.c | 13 |
2 files changed, 16 insertions, 1 deletions
diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig index b66602ad7b33..b7ca5bf9acfc 100644 --- a/arch/s390/Kconfig +++ b/arch/s390/Kconfig | |||
| @@ -80,6 +80,10 @@ config HOTPLUG_CPU | |||
| 80 | can be controlled through /sys/devices/system/cpu/cpu#. | 80 | can be controlled through /sys/devices/system/cpu/cpu#. |
| 81 | Say N if you want to disable CPU hotplug. | 81 | Say N if you want to disable CPU hotplug. |
| 82 | 82 | ||
| 83 | config DEFAULT_MIGRATION_COST | ||
| 84 | int | ||
| 85 | default "1000000" | ||
| 86 | |||
| 83 | config MATHEMU | 87 | config MATHEMU |
| 84 | bool "IEEE FPU emulation" | 88 | bool "IEEE FPU emulation" |
| 85 | depends on MARCH_G5 | 89 | depends on MARCH_G5 |
diff --git a/kernel/sched.c b/kernel/sched.c index 66d957227de9..12d291bf3379 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
| @@ -5058,7 +5058,18 @@ static void init_sched_build_groups(struct sched_group groups[], cpumask_t span, | |||
| 5058 | #define MAX_DOMAIN_DISTANCE 32 | 5058 | #define MAX_DOMAIN_DISTANCE 32 |
| 5059 | 5059 | ||
| 5060 | static unsigned long long migration_cost[MAX_DOMAIN_DISTANCE] = | 5060 | static unsigned long long migration_cost[MAX_DOMAIN_DISTANCE] = |
| 5061 | { [ 0 ... MAX_DOMAIN_DISTANCE-1 ] = -1LL }; | 5061 | { [ 0 ... MAX_DOMAIN_DISTANCE-1 ] = |
| 5062 | /* | ||
| 5063 | * Architectures may override the migration cost and thus avoid | ||
| 5064 | * boot-time calibration. Unit is nanoseconds. Mostly useful for | ||
| 5065 | * virtualized hardware: | ||
| 5066 | */ | ||
| 5067 | #ifdef CONFIG_DEFAULT_MIGRATION_COST | ||
| 5068 | CONFIG_DEFAULT_MIGRATION_COST | ||
| 5069 | #else | ||
| 5070 | -1LL | ||
| 5071 | #endif | ||
| 5072 | }; | ||
| 5062 | 5073 | ||
| 5063 | /* | 5074 | /* |
| 5064 | * Allow override of migration cost - in units of microseconds. | 5075 | * Allow override of migration cost - in units of microseconds. |
