summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorNicholas Mc Guire <der.herr@hofr.at>2013-12-05 23:42:22 (GMT)
committerScott Wood <scottwood@freescale.com>2014-05-14 18:38:54 (GMT)
commitc572d8fb112e6108cb6a805e5d88eff0f5d23f8d (patch)
tree9f31f615a884cdceee33f31690ad2c373d15b053 /init
parent4e3b7fdfae081c6bdf8dbc5c064669e68e90c642 (diff)
downloadlinux-fsl-qoriq-c572d8fb112e6108cb6a805e5d88eff0f5d23f8d.tar.xz
softirq: make migrate disable/enable conditioned on softirq_nestcnt transition
This patch removes the recursive calls to migrate_disable/enable in local_bh_disable/enable the softirq-local-lock.patch introduces local_bh_disable/enable wich decrements/increments the current->softirq_nestcnt and disable/enables migration as well. as softirq_nestcnt (include/linux/sched.h conditioned on CONFIG_PREEMPT_RT_BASE) already is tracking the nesting level of the recursive calls to local_bh_disable/enable (all in kernel/softirq.c) - no need to do it twice. migrate_disable/enable thus can be conditionsed on softirq_nestcnt making a transition from 0-1 to disable migration and 1-0 to re-enable it. No change of functional behavior, this does noticably reduce the observed nesting level of migrate_disable/enable Signed-off-by: Nicholas Mc Guire <der.herr@hofr.at> Reviewed-by: Steven Rostedt <rostedt@goodmis.org> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions