Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 23197
b: refs/heads/master
c: 68c0b67
h: refs/heads/master
i:
  23195: 9b779f5
v: v3
  • Loading branch information
Kenji Kaneshige authored and Greg Kroah-Hartman committed Mar 23, 2006
1 parent 523ed78 commit 98664bb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 23 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: 09e1218eccf58f6174fa68360a7c8dcfe457fe9b
refs/heads/master: 68c0b671491088d79611fa965bbf94b3bc0024a4
21 changes: 0 additions & 21 deletions trunk/drivers/pci/hotplug/shpchp.h
Original file line number Diff line number Diff line change
Expand Up @@ -325,27 +325,6 @@ static inline struct slot *shpchp_find_slot (struct controller *ctrl, u8 device)
return NULL;
}

static inline int wait_for_ctrl_irq (struct controller *ctrl)
{
DECLARE_WAITQUEUE(wait, current);
int retval = 0;

add_wait_queue(&ctrl->queue, &wait);

if (!shpchp_poll_mode) {
/* Sleep for up to 1 second */
msleep_interruptible(1000);
} else {
/* Sleep for up to 2 seconds */
msleep_interruptible(2000);
}
remove_wait_queue(&ctrl->queue, &wait);
if (signal_pending(current))
retval = -EINTR;

return retval;
}

static inline void amd_pogo_errata_save_misc_reg(struct slot *p_slot)
{
u32 pcix_misc2_temp;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/pci/hotplug/shpchp_ctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ static int board_added(struct slot *p_slot)
}

/* Wait for ~1 second */
wait_for_ctrl_irq (ctrl);
msleep(1000);

dbg("%s: slot status = %x\n", __FUNCTION__, p_slot->status);
/* Check for a power fault */
Expand Down

0 comments on commit 98664bb

Please sign in to comment.