From 01c88e35f2885a96ec6e6da4a65b6125de8b807c Mon Sep 17 00:00:00 2001 From: Nishanth Aravamudan Date: Fri, 8 Jul 2005 17:10:00 -0700 Subject: [PATCH] --- yaml --- r: 4597 b: refs/heads/master c: 699139279d29e36e39d353b0536b510dab2e5ffa h: refs/heads/master i: 4595: 4dd1c730d72e6732874473fb5f7c334c953a8041 v: v3 --- [refs] | 2 +- trunk/arch/ia64/sn/kernel/xpc_main.c | 16 +++++----------- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/[refs] b/[refs] index 901dd9468c84..6ef30adc149c 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: d0feafbf14ebe860136b8ad84cce42b34defb323 +refs/heads/master: 699139279d29e36e39d353b0536b510dab2e5ffa diff --git a/trunk/arch/ia64/sn/kernel/xpc_main.c b/trunk/arch/ia64/sn/kernel/xpc_main.c index 177ddb748ebe..d580adcad927 100644 --- a/trunk/arch/ia64/sn/kernel/xpc_main.c +++ b/trunk/arch/ia64/sn/kernel/xpc_main.c @@ -53,6 +53,7 @@ #include #include #include +#include #include #include #include @@ -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; @@ -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 */ @@ -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);