Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 75055
b: refs/heads/master
c: c7af77b
h: refs/heads/master
i:
  75053: f822da5
  75051: 4283801
  75047: 1093de1
  75039: 579eee4
v: v3
  • Loading branch information
Livio Soares authored and Ingo Molnar committed Dec 18, 2007
1 parent 979f79a commit c627d72
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 051a1d1afa47206e23ae03f781c6795ce870e3d5
refs/heads/master: c7af77b584b02d3e321b00203a618a9c93782121
5 changes: 3 additions & 2 deletions trunk/kernel/rwsem.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/module.h>
#include <linux/rwsem.h>

Expand All @@ -15,7 +16,7 @@
/*
* 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_);
Expand All @@ -42,7 +43,7 @@ EXPORT_SYMBOL(down_read_trylock);
/*
* 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_);
Expand Down
2 changes: 1 addition & 1 deletion trunk/lib/rwsem.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ __rwsem_do_wake(struct rw_semaphore *sem, int downgrading)
/*
* wait for a lock to be granted
*/
static struct rw_semaphore *
static struct rw_semaphore __sched *
rwsem_down_failed_common(struct rw_semaphore *sem,
struct rwsem_waiter *waiter, signed long adjustment)
{
Expand Down

0 comments on commit c627d72

Please sign in to comment.