Skip to content

Commit 971eae7

Browse files
committed
Merge branch 'sched-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull scheduler changes from Ingo Molnar: "Bigger changes: - sched/idle restructuring: they are WIP preparation for deeper integration between the scheduler and idle state selection, by Nicolas Pitre. - add NUMA scheduling pseudo-interleaving, by Rik van Riel. - optimize cgroup context switches, by Peter Zijlstra. - RT scheduling enhancements, by Thomas Gleixner. The rest is smaller changes, non-urgnt fixes and cleanups" * 'sched-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (68 commits) sched: Clean up the task_hot() function sched: Remove double calculation in fix_small_imbalance() sched: Fix broken setscheduler() sparc64, sched: Remove unused sparc64_multi_core sched: Remove unused mc_capable() and smt_capable() sched/numa: Move task_numa_free() to __put_task_struct() sched/fair: Fix endless loop in idle_balance() sched/core: Fix endless loop in pick_next_task() sched/fair: Push down check for high priority class task into idle_balance() sched/rt: Fix picking RT and DL tasks from empty queue trace: Replace hardcoding of 19 with MAX_NICE sched: Guarantee task priority in pick_next_task() sched/idle: Remove stale old file sched: Put rq's sched_avg under CONFIG_FAIR_GROUP_SCHED cpuidle/arm64: Remove redundant cpuidle_idle_call() cpuidle/powernv: Remove redundant cpuidle_idle_call() sched, nohz: Exclude isolated cores from load balancing sched: Fix select_task_rq_fair() description comments workqueue: Replace hardcoding of -20 and 19 with MIN_NICE and MAX_NICE sys: Replace hardcoding of -20 and 19 with MIN_NICE and MAX_NICE ...
2 parents 8c292f1 + 6037dd1 commit 971eae7

45 files changed

Lines changed: 913 additions & 541 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/sysctl/kernel.txt‎

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -442,8 +442,7 @@ feature should be disabled. Otherwise, if the system overhead from the
442442
feature is too high then the rate the kernel samples for NUMA hinting
443443
faults may be controlled by the numa_balancing_scan_period_min_ms,
444444
numa_balancing_scan_delay_ms, numa_balancing_scan_period_max_ms,
445-
numa_balancing_scan_size_mb, numa_balancing_settle_count sysctls and
446-
numa_balancing_migrate_deferred.
445+
numa_balancing_scan_size_mb, and numa_balancing_settle_count sysctls.
447446

448447
==============================================================
449448

@@ -484,13 +483,6 @@ rate for each task.
484483
numa_balancing_scan_size_mb is how many megabytes worth of pages are
485484
scanned for a given scan.
486485

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-
494486
==============================================================
495487

496488
osrelease, ostype & version:

‎arch/arm/include/asm/topology.h‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ extern struct cputopo_arm cpu_topology[NR_CPUS];
2020
#define topology_core_cpumask(cpu) (&cpu_topology[cpu].core_sibling)
2121
#define topology_thread_cpumask(cpu) (&cpu_topology[cpu].thread_sibling)
2222

23-
#define mc_capable() (cpu_topology[0].socket_id != -1)
24-
#define smt_capable() (cpu_topology[0].thread_id != -1)
25-
2623
void init_cpu_topology(void);
2724
void store_cpu_topology(unsigned int cpuid);
2825
const struct cpumask *cpu_coregroup_mask(int cpu);

‎arch/arm/kernel/process.c‎

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
#include <linux/uaccess.h>
3131
#include <linux/random.h>
3232
#include <linux/hw_breakpoint.h>
33-
#include <linux/cpuidle.h>
3433
#include <linux/leds.h>
3534
#include <linux/reboot.h>
3635

@@ -133,7 +132,11 @@ EXPORT_SYMBOL_GPL(arm_pm_restart);
133132

134133
void (*arm_pm_idle)(void);
135134

136-
static void default_idle(void)
135+
/*
136+
* Called from the core idle loop.
137+
*/
138+
139+
void arch_cpu_idle(void)
137140
{
138141
if (arm_pm_idle)
139142
arm_pm_idle();
@@ -167,15 +170,6 @@ void arch_cpu_idle_dead(void)
167170
}
168171
#endif
169172

170-
/*
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-
179173
/*
180174
* Called by kexec, immediately prior to machine_kexec().
181175
*

‎arch/arm64/kernel/process.c‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
#include <linux/kallsyms.h>
3434
#include <linux/init.h>
3535
#include <linux/cpu.h>
36-
#include <linux/cpuidle.h>
3736
#include <linux/elfcore.h>
3837
#include <linux/pm.h>
3938
#include <linux/tick.h>
@@ -94,10 +93,8 @@ void arch_cpu_idle(void)
9493
* This should do all the clock switching and wait for interrupt
9594
* tricks
9695
*/
97-
if (cpuidle_idle_call()) {
98-
cpu_do_idle();
99-
local_irq_enable();
100-
}
96+
cpu_do_idle();
97+
local_irq_enable();
10198
}
10299

103100
#ifdef CONFIG_HOTPLUG_CPU

‎arch/ia64/include/asm/topology.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ void build_cpu_to_node_map(void);
7777
#define topology_core_id(cpu) (cpu_data(cpu)->core_id)
7878
#define topology_core_cpumask(cpu) (&cpu_core_map[cpu])
7979
#define topology_thread_cpumask(cpu) (&per_cpu(cpu_sibling_map, cpu))
80-
#define smt_capable() (smp_num_siblings > 1)
8180
#endif
8281

8382
extern void arch_fix_phys_package_id(int num, u32 slot);

‎arch/mips/include/asm/topology.h‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,4 @@
1010

1111
#include <topology.h>
1212

13-
#ifdef CONFIG_SMP
14-
#define smt_capable() (smp_num_siblings > 1)
15-
#endif
16-
1713
#endif /* __ASM_TOPOLOGY_H */

‎arch/powerpc/include/asm/topology.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ static inline int prrn_is_enabled(void)
9999

100100
#ifdef CONFIG_SMP
101101
#include <asm/cputable.h>
102-
#define smt_capable() (cpu_has_feature(CPU_FTR_SMT))
103102

104103
#ifdef CONFIG_PPC64
105104
#include <asm/smp.h>

‎arch/powerpc/platforms/cell/spufs/sched.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ static struct timer_list spuloadavg_timer;
8383
#define MIN_SPU_TIMESLICE max(5 * HZ / (1000 * SPUSCHED_TICK), 1)
8484
#define DEF_SPU_TIMESLICE (100 * HZ / (1000 * SPUSCHED_TICK))
8585

86-
#define MAX_USER_PRIO (MAX_PRIO - MAX_RT_PRIO)
8786
#define SCALE_PRIO(x, prio) \
8887
max(x * (MAX_PRIO - prio) / (MAX_USER_PRIO / 2), MIN_SPU_TIMESLICE)
8988

‎arch/powerpc/platforms/powernv/setup.c‎

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
#include <linux/of_fdt.h>
2727
#include <linux/interrupt.h>
2828
#include <linux/bug.h>
29-
#include <linux/cpuidle.h>
3029
#include <linux/pci.h>
3130

3231
#include <asm/machdep.h>
@@ -225,16 +224,6 @@ static int __init pnv_probe(void)
225224
return 1;
226225
}
227226

228-
void powernv_idle(void)
229-
{
230-
/* Hook to cpuidle framework if available, else
231-
* call on default platform idle code
232-
*/
233-
if (cpuidle_idle_call()) {
234-
power7_idle();
235-
}
236-
}
237-
238227
define_machine(powernv) {
239228
.name = "PowerNV",
240229
.probe = pnv_probe,
@@ -244,7 +233,7 @@ define_machine(powernv) {
244233
.show_cpuinfo = pnv_show_cpuinfo,
245234
.progress = pnv_progress,
246235
.machine_shutdown = pnv_shutdown,
247-
.power_save = powernv_idle,
236+
.power_save = power7_idle,
248237
.calibrate_decr = generic_calibrate_decr,
249238
.dma_set_mask = pnv_dma_set_mask,
250239
#ifdef CONFIG_KEXEC

‎arch/powerpc/platforms/pseries/setup.c‎

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
#include <linux/irq.h>
4040
#include <linux/seq_file.h>
4141
#include <linux/root_dev.h>
42-
#include <linux/cpuidle.h>
4342
#include <linux/of.h>
4443
#include <linux/kexec.h>
4544

@@ -356,29 +355,24 @@ early_initcall(alloc_dispatch_log_kmem_cache);
356355

357356
static void pseries_lpar_idle(void)
358357
{
359-
/* This would call on the cpuidle framework, and the back-end pseries
360-
* driver to go to idle states
358+
/*
359+
* Default handler to go into low thread priority and possibly
360+
* low power mode by cedeing processor to hypervisor
361361
*/
362-
if (cpuidle_idle_call()) {
363-
/* On error, execute default handler
364-
* to go into low thread priority and possibly
365-
* low power mode by cedeing processor to hypervisor
366-
*/
367362

368-
/* Indicate to hypervisor that we are idle. */
369-
get_lppaca()->idle = 1;
363+
/* Indicate to hypervisor that we are idle. */
364+
get_lppaca()->idle = 1;
370365

371-
/*
372-
* Yield the processor to the hypervisor. We return if
373-
* an external interrupt occurs (which are driven prior
374-
* to returning here) or if a prod occurs from another
375-
* processor. When returning here, external interrupts
376-
* are enabled.
377-
*/
378-
cede_processor();
366+
/*
367+
* Yield the processor to the hypervisor. We return if
368+
* an external interrupt occurs (which are driven prior
369+
* to returning here) or if a prod occurs from another
370+
* processor. When returning here, external interrupts
371+
* are enabled.
372+
*/
373+
cede_processor();
379374

380-
get_lppaca()->idle = 0;
381-
}
375+
get_lppaca()->idle = 0;
382376
}
383377

384378
/*

0 commit comments

Comments
 (0)