Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 4597
b: refs/heads/master
c: 6991392
h: refs/heads/master
i:
  4595: 4dd1c73
v: v3
  • Loading branch information
Nishanth Aravamudan authored and Tony Luck committed Jul 11, 2005
1 parent c294246 commit 01c88e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 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: d0feafbf14ebe860136b8ad84cce42b34defb323
refs/heads/master: 699139279d29e36e39d353b0536b510dab2e5ffa
16 changes: 5 additions & 11 deletions trunk/arch/ia64/sn/kernel/xpc_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
#include <linux/cache.h>
#include <linux/interrupt.h>
#include <linux/slab.h>
#include <linux/delay.h>
#include <asm/sn/intr.h>
#include <asm/sn/sn_sal.h>
#include <asm/uaccess.h>
Expand Down Expand Up @@ -308,8 +309,7 @@ xpc_make_first_contact(struct xpc_partition *part)
"partition %d\n", XPC_PARTID(part));

/* wait a 1/4 of a second or so */
set_current_state(TASK_INTERRUPTIBLE);
(void) schedule_timeout(0.25 * HZ);
msleep_interruptible(250);

if (part->act_state == XPC_P_DEACTIVATING) {
return part->reason;
Expand Down Expand Up @@ -841,9 +841,7 @@ xpc_do_exit(void)
down(&xpc_discovery_exited);


set_current_state(TASK_INTERRUPTIBLE);
schedule_timeout(0.3 * HZ);
set_current_state(TASK_RUNNING);
msleep_interruptible(300);


/* wait for all partitions to become inactive */
Expand All @@ -860,12 +858,8 @@ xpc_do_exit(void)
}
}

if (active_part_count) {
set_current_state(TASK_INTERRUPTIBLE);
schedule_timeout(0.3 * HZ);
set_current_state(TASK_RUNNING);
}

if (active_part_count)
msleep_interruptible(300);
} while (active_part_count > 0);


Expand Down

0 comments on commit 01c88e3

Please sign in to comment.