Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 56598
b: refs/heads/master
c: 9d561ed
h: refs/heads/master
v: v3
  • Loading branch information
Christoph Hellwig authored and Paul Mackerras committed May 17, 2007
1 parent 7449083 commit c021792
Show file tree
Hide file tree
Showing 2 changed files with 6 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: e38e3458804019c3fe9b17998e05fd1cd480806d
refs/heads/master: 9d561ed46ea33c223def2eb8e2b09ea108a4d70b
9 changes: 5 additions & 4 deletions trunk/arch/powerpc/platforms/iseries/viopath.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#include <linux/wait.h>
#include <linux/seq_file.h>
#include <linux/interrupt.h>
#include <linux/completion.h>

#include <asm/system.h>
#include <asm/uaccess.h>
Expand Down Expand Up @@ -115,7 +116,7 @@ static int proc_viopath_show(struct seq_file *m, void *v)
u16 vlanMap;
dma_addr_t handle;
HvLpEvent_Rc hvrc;
DECLARE_MUTEX_LOCKED(Semaphore);
DECLARE_COMPLETION(done);
struct device_node *node;
const char *sysid;

Expand All @@ -132,13 +133,13 @@ static int proc_viopath_show(struct seq_file *m, void *v)
HvLpEvent_AckInd_DoAck, HvLpEvent_AckType_ImmediateAck,
viopath_sourceinst(viopath_hostLp),
viopath_targetinst(viopath_hostLp),
(u64)(unsigned long)&Semaphore, VIOVERSION << 16,
(u64)(unsigned long)&done, VIOVERSION << 16,
((u64)handle) << 32, HW_PAGE_SIZE, 0, 0);

if (hvrc != HvLpEvent_Rc_Good)
printk(VIOPATH_KERN_WARN "hv error on op %d\n", (int)hvrc);

down(&Semaphore);
wait_for_completion(&done);

vlanMap = HvLpConfig_getVirtualLanIndexMap();

Expand Down Expand Up @@ -353,7 +354,7 @@ static void handleConfig(struct HvLpEvent *event)
return;
}

up((struct semaphore *)event->xCorrelationToken);
complete((struct completion *)event->xCorrelationToken);
}

/*
Expand Down

0 comments on commit c021792

Please sign in to comment.