diff options
45 files changed, 913 insertions, 541 deletions
diff --git a/Documentation/sysctl/kernel.txt b/Documentation/sysctl/kernel.txt index e1d28fbf7570..ec8be46bf48d 100644 --- a/Documentation/sysctl/kernel.txt +++ b/Documentation/sysctl/kernel.txt | |||
| @@ -442,8 +442,7 @@ feature should be disabled. Otherwise, if the system overhead from the | |||
| 442 | feature is too high then the rate the kernel samples for NUMA hinting | 442 | feature is too high then the rate the kernel samples for NUMA hinting |
| 443 | faults may be controlled by the numa_balancing_scan_period_min_ms, | 443 | faults may be controlled by the numa_balancing_scan_period_min_ms, |
| 444 | numa_balancing_scan_delay_ms, numa_balancing_scan_period_max_ms, | 444 | numa_balancing_scan_delay_ms, numa_balancing_scan_period_max_ms, |
| 445 | numa_balancing_scan_size_mb, numa_balancing_settle_count sysctls and | 445 | numa_balancing_scan_size_mb, and numa_balancing_settle_count sysctls. |
| 446 | numa_balancing_migrate_deferred. | ||
| 447 | 446 | ||
| 448 | ============================================================== | 447 | ============================================================== |
| 449 | 448 | ||
| @@ -484,13 +483,6 @@ rate for each task. | |||
| 484 | numa_balancing_scan_size_mb is how many megabytes worth of pages are | 483 | numa_balancing_scan_size_mb is how many megabytes worth of pages are |
| 485 | scanned for a given scan. | 484 | scanned for a given scan. |
| 486 | 485 | ||
| 487 | numa_balancing_migrate_deferred is how many page migrations get skipped | ||
| 488 | unconditionally, after a page migration is skipped because a page is shared | ||
| 489 | with other tasks. This reduces page migration overhead, and determines | ||
| 490 | how much stronger the "move task near its memory" policy scheduler becomes, | ||
| 491 | versus the "move memory near its task" memory management policy, for workloads | ||
| 492 | with shared memory. | ||
| 493 | |||
| 494 | ============================================================== | 486 | ============================================================== |
| 495 | 487 | ||
| 496 | osrelease, ostype & version: | 488 | osrelease, ostype & version: |
diff --git a/arch/arm/include/asm/topology.h b/arch/arm/include/asm/topology.h index 58b8b84adcd2..2fe85fff5cca 100644 --- a/arch/arm/include/asm/topology.h +++ b/arch/arm/include/asm/topology.h | |||
| @@ -20,9 +20,6 @@ extern struct cputopo_arm cpu_topology[NR_CPUS]; | |||
| 20 | #define topology_core_cpumask(cpu) (&cpu_topology[cpu].core_sibling) | 20 | #define topology_core_cpumask(cpu) (&cpu_topology[cpu].core_sibling) |
| 21 | #define topology_thread_cpumask(cpu) (&cpu_topology[cpu].thread_sibling) | 21 | #define topology_thread_cpumask(cpu) (&cpu_topology[cpu].thread_sibling) |
| 22 | 22 | ||
| 23 | #define mc_capable() (cpu_topology[0].socket_id != -1) | ||
| 24 | #define smt_capable() (cpu_topology[0].thread_id != -1) | ||
| 25 | |||
| 26 | void init_cpu_topology(void); | 23 | void init_cpu_topology(void); |
| 27 | void store_cpu_topology(unsigned int cpuid); | 24 | void store_cpu_topology(unsigned int cpuid); |
| 28 | const struct cpumask *cpu_coregroup_mask(int cpu); | 25 | const struct cpumask *cpu_coregroup_mask(int cpu); |
diff --git a/arch/arm/kernel/process.c b/arch/arm/kernel/process.c index 92f7b15dd221..adabeababeb0 100644 --- a/arch/arm/kernel/process.c +++ b/arch/arm/kernel/process.c | |||
| @@ -30,7 +30,6 @@ | |||
| 30 | #include <linux/uaccess.h> | 30 | #include <linux/uaccess.h> |
| 31 | #include <linux/random.h> | 31 | #include <linux/random.h> |
| 32 | #include <linux/hw_breakpoint.h> | 32 | #include <linux/hw_breakpoint.h> |
| 33 | #include <linux/cpuidle.h> | ||
| 34 | #include <linux/leds.h> | 33 | #include <linux/leds.h> |
| 35 | #include <linux/reboot.h> | 34 | #include <linux/reboot.h> |
| 36 | 35 | ||
| @@ -133,7 +132,11 @@ EXPORT_SYMBOL_GPL(arm_pm_restart); | |||
| 133 | 132 | ||
| 134 | void (*arm_pm_idle)(void); | 133 | void (*arm_pm_idle)(void); |
| 135 | 134 | ||
| 136 | static void default_idle(void) | 135 | /* |
| 136 | * Called from the core idle loop. | ||
| 137 | */ | ||
| 138 | |||
| 139 | void arch_cpu_idle(void) | ||
| 137 | { | 140 | { |
| 138 | if (arm_pm_idle) | 141 | if (arm_pm_idle) |
| 139 | arm_pm_idle(); | 142 | arm_pm_idle(); |
| @@ -168,15 +171,6 @@ void arch_cpu_idle_dead(void) | |||
| 168 | #endif | 171 | #endif |
| 169 | 172 | ||
| 170 | /* | 173 | /* |
| 171 | * Called from the core idle loop. | ||
| 172 | */ | ||
| 173 | void arch_cpu_idle(void) | ||
| 174 | { | ||
| 175 | if (cpuidle_idle_call()) | ||
| 176 | default_idle(); | ||
| 177 | } | ||
| 178 | |||
| 179 | /* | ||
| 180 | * Called by kexec, immediately prior to machine_kexec(). | 174 | * Called by kexec, immediately prior to machine_kexec(). |
| 181 | * | 175 | * |
| 182 | * This must completely disable all secondary CPUs; simply causing those CPUs | 176 | * This must completely disable all secondary CPUs; simply causing those CPUs |
diff --git a/arch/arm64/kernel/process.c b/arch/arm64/kernel/process.c index 1c0a9be2ffa8..9cce0098f4cd 100644 --- a/arch/arm64/kernel/process.c +++ b/arch/arm64/kernel/process.c | |||
| @@ -33,7 +33,6 @@ | |||
| 33 | #include <linux/kallsyms.h> | 33 | #include <linux/kallsyms.h> |
| 34 | #include <linux/init.h> | 34 | #include <linux/init.h> |
| 35 | #include <linux/cpu.h> | 35 | #include <linux/cpu.h> |
| 36 | #include <linux/cpuidle.h> | ||
| 37 | #include <linux/elfcore.h> | 36 | #include <linux/elfcore.h> |
| 38 | #include <linux/pm.h> | 37 | #include <linux/pm.h> |
| 39 | #include <linux/tick.h> | 38 | #include <linux/tick.h> |
| @@ -94,10 +93,8 @@ void arch_cpu_idle(void) | |||
| 94 | * This should do all the clock switching and wait for interrupt | 93 | * This should do all the clock switching and wait for interrupt |
| 95 | * tricks | 94 | * tricks |
| 96 | */ | 95 | */ |
| 97 | if (cpuidle_idle_call()) { | 96 | cpu_do_idle(); |
| 98 | cpu_do_idle(); | 97 | local_irq_enable(); |
| 99 | local_irq_enable(); | ||
| 100 | } | ||
| 101 | } | 98 | } |
| 102 | 99 | ||
| 103 | #ifdef CONFIG_HOTPLUG_CPU | 100 | #ifdef CONFIG_HOTPLUG_CPU |
diff --git a/arch/ia64/include/asm/topology.h b/arch/ia64/include/asm/topology.h index a2496e449b75..5cb55a1e606b 100644 --- a/arch/ia64/include/asm/topology.h +++ b/arch/ia64/include/asm/topology.h | |||
| @@ -77,7 +77,6 @@ void build_cpu_to_node_map(void); | |||
| 77 | #define topology_core_id(cpu) (cpu_data(cpu)->core_id) | 77 | #define topology_core_id(cpu) (cpu_data(cpu)->core_id) |
| 78 | #define topology_core_cpumask(cpu) (&cpu_core_map[cpu]) | 78 | #define topology_core_cpumask(cpu) (&cpu_core_map[cpu]) |
| 79 | #define topology_thread_cpumask(cpu) (&per_cpu(cpu_sibling_map, cpu)) | 79 | #define topology_thread_cpumask(cpu) (&per_cpu(cpu_sibling_map, cpu)) |
| 80 | #define smt_capable() (smp_num_siblings > 1) | ||
