diff options
author | RT patchquilt <nobody@example.com> | 2013-04-04 22:09:27 (GMT) |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2013-04-04 22:09:27 (GMT) |
commit | b43f83b53aff708b1dde2a4b166c3e1555dd443c (patch) | |
tree | c213a917c61ee8f46c74f76de58eea694579f94c /lib | |
parent | 48eb8241f1898d0bf68e0557f70eb9ecf147276d (diff) | |
download | linux-fsl-qoriq-b43f83b53aff708b1dde2a4b166c3e1555dd443c.tar.xz |
percpu-rwsem-compilefix
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) |