projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cpumask: remove arch_send_call_function_ipi
[deliverable/linux.git]
/
kernel
/
rwsem.c
diff --git
a/kernel/rwsem.c
b/kernel/rwsem.c
index 9a87886b022eb42ab486cd4749a5da1043a91c36..cae050b05f5ef91b22547dc88e6b6abc39877018 100644
(file)
--- a/
kernel/rwsem.c
+++ b/
kernel/rwsem.c
@@
-6,6
+6,7
@@
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/kernel.h>
+#include <linux/sched.h>
#include <linux/module.h>
#include <linux/rwsem.h>
#include <linux/module.h>
#include <linux/rwsem.h>
@@
-15,12
+16,12
@@
/*
* lock for reading
*/
/*
* lock for reading
*/
-void down_read(struct rw_semaphore *sem)
+void
__sched
down_read(struct rw_semaphore *sem)
{
might_sleep();
rwsem_acquire_read(&sem->dep_map, 0, 0, _RET_IP_);
{
might_sleep();
rwsem_acquire_read(&sem->dep_map, 0, 0, _RET_IP_);
-
__down_read(sem
);
+
LOCK_CONTENDED(sem, __down_read_trylock, __down_read
);
}
EXPORT_SYMBOL(down_read);
}
EXPORT_SYMBOL(down_read);
@@
-42,12
+43,12
@@
EXPORT_SYMBOL(down_read_trylock);
/*
* lock for writing
*/
/*
* lock for writing
*/
-void down_write(struct rw_semaphore *sem)
+void
__sched
down_write(struct rw_semaphore *sem)
{
might_sleep();
rwsem_acquire(&sem->dep_map, 0, 0, _RET_IP_);
{
might_sleep();
rwsem_acquire(&sem->dep_map, 0, 0, _RET_IP_);
-
__down_write(sem
);
+
LOCK_CONTENDED(sem, __down_write_trylock, __down_write
);
}
EXPORT_SYMBOL(down_write);
}
EXPORT_SYMBOL(down_write);
@@
-111,7
+112,7
@@
void down_read_nested(struct rw_semaphore *sem, int subclass)
might_sleep();
rwsem_acquire_read(&sem->dep_map, subclass, 0, _RET_IP_);
might_sleep();
rwsem_acquire_read(&sem->dep_map, subclass, 0, _RET_IP_);
-
__down_read(sem
);
+
LOCK_CONTENDED(sem, __down_read_trylock, __down_read
);
}
EXPORT_SYMBOL(down_read_nested);
}
EXPORT_SYMBOL(down_read_nested);
@@
-130,7
+131,7
@@
void down_write_nested(struct rw_semaphore *sem, int subclass)
might_sleep();
rwsem_acquire(&sem->dep_map, subclass, 0, _RET_IP_);
might_sleep();
rwsem_acquire(&sem->dep_map, subclass, 0, _RET_IP_);
-
__down_write_nested(sem, subclass
);
+
LOCK_CONTENDED(sem, __down_write_trylock, __down_write
);
}
EXPORT_SYMBOL(down_write_nested);
}
EXPORT_SYMBOL(down_write_nested);
This page took
0.025873 seconds
and
5
git commands to generate.