diff options
author | Neil Zhang <zhangwm@marvell.com> | 2013-04-11 21:04:59 +0800 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2013-05-28 09:40:22 +0200 |
commit | c5405a495e88d93cf9b4f4cc91507c7f4afcb901 (patch) | |
tree | c0d33303fb9162c610c5a0f0bc108f746d1e1b69 /kernel/sched/sched.h | |
parent | 41261b6a832ea0e788627f6a8707854423f9ff49 (diff) | |
download | op-kernel-dev-c5405a495e88d93cf9b4f4cc91507c7f4afcb901.zip op-kernel-dev-c5405a495e88d93cf9b4f4cc91507c7f4afcb901.tar.gz |
sched: Remove redundant update_runtime notifier
migration_call() will do all the things that update_runtime() does.
So let's remove it.
Furthermore, there is potential risk that the current code will catch
BUG_ON at line 689 of rt.c when do cpu hotplug while there are realtime
threads running because of enabling runtime twice while the rt_runtime
may already changed.
Signed-off-by: Neil Zhang <zhangwm@marvell.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1365685499-26515-1-git-send-email-zhangwm@marvell.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/sched/sched.h')
-rw-r--r-- | kernel/sched/sched.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h index f1f6256..c806c61 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h @@ -1041,7 +1041,6 @@ static inline void idle_balance(int cpu, struct rq *rq) extern void sysrq_sched_debug_show(void); extern void sched_init_granularity(void); extern void update_max_interval(void); -extern int update_runtime(struct notifier_block *nfb, unsigned long action, void *hcpu); extern void init_sched_rt_class(void); extern void init_sched_fair_class(void); |