Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 83230
b: refs/heads/master
c: e98fa28
h: refs/heads/master
v: v3
  • Loading branch information
Daniel Walker authored and Linus Torvalds committed Feb 5, 2008
1 parent 5a9eb42 commit 6e6190d
Show file tree
Hide file tree
Showing 2 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: 01ac835fdd121f36dded404af15225101f6ccee3
refs/heads/master: e98fa28160eabdcda4c4c5bf7af7a3256c10c922
7 changes: 4 additions & 3 deletions trunk/arch/um/drivers/mconsole_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include "linux/syscalls.h"
#include "linux/utsname.h"
#include "linux/workqueue.h"
#include "linux/mutex.h"
#include "asm/uaccess.h"
#include "init.h"
#include "irq_kern.h"
Expand Down Expand Up @@ -360,7 +361,7 @@ struct unplugged_pages {
void *pages[UNPLUGGED_PER_PAGE];
};

static DECLARE_MUTEX(plug_mem_mutex);
static DEFINE_MUTEX(plug_mem_mutex);
static unsigned long long unplugged_pages_count = 0;
static LIST_HEAD(unplugged_pages);
static int unplug_index = UNPLUGGED_PER_PAGE;
Expand Down Expand Up @@ -396,7 +397,7 @@ static int mem_config(char *str, char **error_out)

diff /= PAGE_SIZE;

down(&plug_mem_mutex);
mutex_lock(&plug_mem_mutex);
for (i = 0; i < diff; i++) {
struct unplugged_pages *unplugged;
void *addr;
Expand Down Expand Up @@ -453,7 +454,7 @@ static int mem_config(char *str, char **error_out)

err = 0;
out_unlock:
up(&plug_mem_mutex);
mutex_unlock(&plug_mem_mutex);
out:
return err;
}
Expand Down

0 comments on commit 6e6190d

Please sign in to comment.