diff options
author | Nicholas Mc Guire <der.herr@hofr.at> | 2013-11-29 05:17:27 (GMT) |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2014-05-14 18:38:26 (GMT) |
commit | e9f2762409e2795c1e418ed196a7f27df46cf1e7 (patch) | |
tree | 754ca43625e29697af1e0124b77831083732bd94 /kernel | |
parent | 729bdb5ce453cdde6ece4af80d72ef8101903b5f (diff) | |
download | linux-fsl-qoriq-e9f2762409e2795c1e418ed196a7f27df46cf1e7.tar.xz |
migrate_disable pushd down in rt_spin_trylock_irqsave
Signed-off-by: Nicholas Mc Guire <der.herr@hofr.at>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/rtmutex.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/kernel/rtmutex.c b/kernel/rtmutex.c index f6b6ebb..ef42b8a 100644 --- a/kernel/rtmutex.c +++ b/kernel/rtmutex.c @@ -920,12 +920,11 @@ int __lockfunc rt_spin_trylock_irqsave(spinlock_t *lock, unsigned long *flags) int ret; *flags = 0; - migrate_disable(); ret = rt_mutex_trylock(&lock->lock); - if (ret) + if (ret) { + migrate_disable(); spin_acquire(&lock->dep_map, 0, 1, _RET_IP_); - else - migrate_enable(); + } return ret; } EXPORT_SYMBOL(rt_spin_trylock_irqsave); |