forked from luck/tmp_suning_uos_patched
1751060e25
As preparation for replacing the embedded rwsem, give percpu-rwsem its own lockdep_map. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Ingo Molnar <mingo@kernel.org> Reviewed-by: Davidlohr Bueso <dbueso@suse.de> Acked-by: Will Deacon <will@kernel.org> Acked-by: Waiman Long <longman@redhat.com> Tested-by: Juri Lelli <juri.lelli@redhat.com> Link: https://lkml.kernel.org/r/20200131151539.927625541@infradead.org
13 lines
355 B
C
13 lines
355 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
#ifndef __INTERNAL_RWSEM_H
|
|
#define __INTERNAL_RWSEM_H
|
|
#include <linux/rwsem.h>
|
|
|
|
extern void __down_read(struct rw_semaphore *sem);
|
|
extern void __up_read(struct rw_semaphore *sem);
|
|
extern void __down_write(struct rw_semaphore *sem);
|
|
extern void __up_write(struct rw_semaphore *sem);
|
|
|
|
#endif /* __INTERNAL_RWSEM_H */
|