diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-12 01:52:48 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-12 01:52:48 -0500 |
commit | b8bf17d311c875de02550d5ce2af66588734159a (patch) | |
tree | 82d829df77f3eb506d10928fd633a8a6e5685082 /kernel/sched | |
parent | 9fc5c3e3237e02a94f41cd1d2b4291593d29791d (diff) | |
parent | bced76aeaca03b45e3b4bdb868cada328e497847 (diff) |
Merge branch 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
* 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
sched: Fix lockup by limiting load-balance retries on lock-break
sched: Fix CONFIG_CGROUP_SCHED dependency
sched: Remove empty #ifdefs
Diffstat (limited to 'kernel/sched')
-rw-r--r-- | kernel/sched/core.c | 7 | ||||
-rw-r--r-- | kernel/sched/fair.c | 10 |
2 files changed, 7 insertions, 10 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index cecbb64be05f..fd7b25e90079 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c | |||
@@ -7134,10 +7134,6 @@ void set_curr_task(int cpu, struct task_struct *p) | |||
7134 | 7134 | ||
7135 | #endif | 7135 | #endif |
7136 | 7136 | ||
7137 | #ifdef CONFIG_RT_GROUP_SCHED | ||
7138 | #else /* !CONFIG_RT_GROUP_SCHED */ | ||
7139 | #endif /* CONFIG_RT_GROUP_SCHED */ | ||
7140 | |||
7141 | #ifdef CONFIG_CGROUP_SCHED | 7137 | #ifdef CONFIG_CGROUP_SCHED |
7142 | /* task_group_lock serializes the addition/removal of task groups */ | 7138 | /* task_group_lock serializes the addition/removal of task groups */ |
7143 | static DEFINE_SPINLOCK(task_group_lock); | 7139 | static DEFINE_SPINLOCK(task_group_lock); |
@@ -7246,9 +7242,6 @@ void sched_move_task(struct task_struct *tsk) | |||
7246 | } | 7242 | } |
7247 | #endif /* CONFIG_CGROUP_SCHED */ | 7243 | #endif /* CONFIG_CGROUP_SCHED */ |
7248 | 7244 | ||
7249 | #ifdef CONFIG_FAIR_GROUP_SCHED | ||
7250 | #endif | ||
7251 | |||
7252 | #if defined(CONFIG_RT_GROUP_SCHED) || defined(CONFIG_CFS_BANDWIDTH) | 7245 | #if defined(CONFIG_RT_GROUP_SCHED) || defined(CONFIG_CFS_BANDWIDTH) |
7253 | static unsigned long to_ratio(u64 period, u64 runtime) | 7246 | static unsigned long to_ratio(u64 period, u64 runtime) |
7254 | { | 7247 | { |
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 8e42de9105f8..84adb2d66cbd 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c | |||
@@ -3130,8 +3130,10 @@ task_hot(struct task_struct *p, u64 now, struct sched_domain *sd) | |||
3130 | } | 3130 | } |
3131 | 3131 | ||
3132 | #define LBF_ALL_PINNED 0x01 | 3132 | #define LBF_ALL_PINNED 0x01 |
3133 | #define LBF_NEED_BREAK 0x02 | 3133 | #define LBF_NEED_BREAK 0x02 /* clears into HAD_BREAK */ |
3134 | #define LBF_ABORT 0x04 | 3134 | #define LBF_HAD_BREAK 0x04 |
3135 | #define LBF_HAD_BREAKS 0x0C /* count HAD_BREAKs overflows into ABORT */ | ||
3136 | #define LBF_ABORT 0x10 | ||
3135 | 3137 | ||
3136 | /* | 3138 | /* |
3137 | * can_migrate_task - may task p from runqueue rq be migrated to this_cpu? | 3139 | * can_migrate_task - may task p from runqueue rq be migrated to this_cpu? |
@@ -4508,7 +4510,9 @@ redo: | |||
4508 | goto out_balanced; | 4510 | goto out_balanced; |
4509 | 4511 | ||
4510 | if (lb_flags & LBF_NEED_BREAK) { | 4512 | if (lb_flags & LBF_NEED_BREAK) { |
4511 | lb_flags &= ~LBF_NEED_BREAK; | 4513 | lb_flags += LBF_HAD_BREAK - LBF_NEED_BREAK; |
4514 | if (lb_flags & LBF_ABORT) | ||
4515 | goto out_balanced; | ||
4512 | goto redo; | 4516 | goto redo; |
4513 | } | 4517 | } |
4514 | 4518 | ||