diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-03-31 14:21:19 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-03-31 14:21:19 -0400 |
commit | 971eae7c99212dd67b425a603f1fe3b763359907 (patch) | |
tree | 2ff002ecc759275cbecee123a230f90ea7452b18 /arch/x86 | |
parent | 8c292f11744297dfb3a69f4a0bccbe4a6417b50d (diff) | |
parent | 6037dd1a49f95092824fa8ba75c717ff7805e317 (diff) |
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
...
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/include/asm/topology.h | 6 | ||||
-rw-r--r-- | arch/x86/kernel/process.c | 5 |
2 files changed, 1 insertions, 10 deletions
diff --git a/arch/x86/include/asm/topology.h b/arch/x86/include/asm/topology.h index 1306d117967d..b28097e4c8c3 100644 --- a/arch/x86/include/asm/topology.h +++ b/arch/x86/include/asm/topology.h | |||
@@ -134,12 +134,6 @@ static inline void arch_fix_phys_package_id(int num, u32 slot) | |||
134 | struct pci_bus; | 134 | struct pci_bus; |
135 | void x86_pci_root_bus_resources(int bus, struct list_head *resources); | 135 | void x86_pci_root_bus_resources(int bus, struct list_head *resources); |
136 | 136 | ||
137 | #ifdef CONFIG_SMP | ||
138 | #define mc_capable() ((boot_cpu_data.x86_max_cores > 1) && \ | ||
139 | (cpumask_weight(cpu_core_mask(0)) != nr_cpu_ids)) | ||
140 | #define smt_capable() (smp_num_siblings > 1) | ||
141 | #endif | ||
142 | |||
143 | #ifdef CONFIG_NUMA | 137 | #ifdef CONFIG_NUMA |
144 | extern int get_mp_bus_to_node(int busnum); | 138 | extern int get_mp_bus_to_node(int busnum); |
145 | extern void set_mp_bus_to_node(int busnum, int node); | 139 | extern void set_mp_bus_to_node(int busnum, int node); |
diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c index 3fb8d95ab8b5..4505e2a950d8 100644 --- a/arch/x86/kernel/process.c +++ b/arch/x86/kernel/process.c | |||
@@ -298,10 +298,7 @@ void arch_cpu_idle_dead(void) | |||
298 | */ | 298 | */ |
299 | void arch_cpu_idle(void) | 299 | void arch_cpu_idle(void) |
300 | { | 300 | { |
301 | if (cpuidle_idle_call()) | 301 | x86_idle(); |
302 | x86_idle(); | ||
303 | else | ||
304 | local_irq_enable(); | ||
305 | } | 302 | } |
306 | 303 | ||
307 | /* | 304 | /* |