diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2013-04-08 14:08:46 (GMT) |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2014-05-14 18:38:27 (GMT) |
commit | 89c3e78c353a62a12c873f0fe7073e58b79a1636 (patch) | |
tree | 44c9c0da7c16b6bdaf6f4f4f2071ede5b4edc483 /lib | |
parent | cc93f240bdb4a9db73f8407fdc201fef75681332 (diff) | |
download | linux-fsl-qoriq-89c3e78c353a62a12c873f0fe7073e58b79a1636.tar.xz |
percpu-rwsem: compile fix
The shortcut on mainline skip lockdep. No idea why this is a good thing.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/percpu-rwsem.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/percpu-rwsem.c b/lib/percpu-rwsem.c index 652a8ee..2db0f42 100644 --- a/lib/percpu-rwsem.c +++ b/lib/percpu-rwsem.c @@ -84,8 +84,12 @@ void percpu_down_read(struct percpu_rw_semaphore *brw) down_read(&brw->rw_sem); atomic_inc(&brw->slow_read_ctr); +#ifdef CONFIG_PREEMPT_RT_FULL + up_read(&brw->rw_sem); +#else /* avoid up_read()->rwsem_release() */ __up_read(&brw->rw_sem); +#endif } void percpu_up_read(struct percpu_rw_semaphore *brw) |