path: root/kernel/sched/cpudeadline.h
diff options
authorLinus Torvalds <torvalds@linux-foundation.org>2014-06-01 18:26:59 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2014-06-01 18:26:59 -0700
commit32439700fe1c0fc3c2d3f2aedd3ad6707c88b8ba (patch)
treeeb65ec1f536354bc7d48a7179b14224726a28329 /kernel/sched/cpudeadline.h
parenta4bf79eb6a42e863e0fccf19f9383c618e8efc43 (diff)
parent6acbfb96976fc3350e30d964acb1dbbdf876d55e (diff)
Merge branch 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull scheduler fixes from Ingo Molnar: "Various fixlets, mostly related to the (root-only) SCHED_DEADLINE policy, but also a hotplug bug fix and a fix for a NR_CPUS related overallocation bug causing a suspend/resume regression" * 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: sched: Fix hotplug vs. set_cpus_allowed_ptr() sched/cpupri: Replace NR_CPUS arrays sched/deadline: Replace NR_CPUS arrays sched/deadline: Restrict user params max value to 2^63 ns sched/deadline: Change sched_getparam() behaviour vs SCHED_DEADLINE sched: Disallow sched_attr::sched_policy < 0 sched: Make sched_setattr() correctly return -EFBIG
Diffstat (limited to 'kernel/sched/cpudeadline.h')
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/sched/cpudeadline.h b/kernel/sched/cpudeadline.h
index a202789a412..538c9796ad4 100644
--- a/kernel/sched/cpudeadline.h
+++ b/kernel/sched/cpudeadline.h
@@ -5,17 +5,17 @@
#define IDX_INVALID -1
-struct array_item {
+struct cpudl_item {
u64 dl;
int cpu;
+ int idx;
struct cpudl {
raw_spinlock_t lock;
int size;
- int cpu_to_idx[NR_CPUS];
- struct array_item elements[NR_CPUS];
cpumask_var_t free_cpus;
+ struct cpudl_item *elements;