Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 90463
b: refs/heads/master
c: 06f89ed
h: refs/heads/master
i:
  90461: bb278b9
  90459: b32d66f
  90455: 2da95f3
  90447: 34b671e
  90431: 9aa500a
v: v3
  • Loading branch information
Daniel Walker authored and Jeff Garzik committed Mar 29, 2008
1 parent a8f2bb0 commit f53cb9b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: b7aa69097acb86c118edaa5e339b714617062dfe
refs/heads/master: 06f89edf89f254346c95d0c569cecd606459d83e
8 changes: 4 additions & 4 deletions trunk/drivers/net/ehea/ehea_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include <linux/notifier.h>
#include <linux/reboot.h>
#include <asm/kexec.h>
#include <linux/mutex.h>

#include <net/ip.h>

Expand Down Expand Up @@ -99,7 +100,7 @@ static int port_name_cnt;
static LIST_HEAD(adapter_list);
u64 ehea_driver_flags;
struct work_struct ehea_rereg_mr_task;
struct semaphore dlpar_mem_lock;
static DEFINE_MUTEX(dlpar_mem_lock);
struct ehea_fw_handle_array ehea_fw_handles;
struct ehea_bcmc_reg_array ehea_bcmc_regs;

Expand Down Expand Up @@ -2830,7 +2831,7 @@ static void ehea_rereg_mrs(struct work_struct *work)
int ret, i;
struct ehea_adapter *adapter;

down(&dlpar_mem_lock);
mutex_lock(&dlpar_mem_lock);
ehea_info("LPAR memory enlarged - re-initializing driver");

list_for_each_entry(adapter, &adapter_list, list)
Expand Down Expand Up @@ -2902,7 +2903,7 @@ static void ehea_rereg_mrs(struct work_struct *work)
}
}
}
up(&dlpar_mem_lock);
mutex_unlock(&dlpar_mem_lock);
ehea_info("re-initializing driver complete");
out:
return;
Expand Down Expand Up @@ -3543,7 +3544,6 @@ int __init ehea_module_init(void)
memset(&ehea_fw_handles, 0, sizeof(ehea_fw_handles));
memset(&ehea_bcmc_regs, 0, sizeof(ehea_bcmc_regs));

sema_init(&dlpar_mem_lock, 1);
sema_init(&ehea_fw_handles.lock, 1);
sema_init(&ehea_bcmc_regs.lock, 1);

Expand Down

0 comments on commit f53cb9b

Please sign in to comment.