aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/sgi-xp/xpc_channel.c
diff options
context:
space:
mode:
authorDean Nelson <dcn@sgi.com>2008-07-30 01:34:18 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-07-30 12:41:50 -0400
commit83469b5525b4a35be40b17cb41d64118d84d9f80 (patch)
treee258238c04b25892c1b1fc85ef42b67ce5bac873 /drivers/misc/sgi-xp/xpc_channel.c
parent61deb86e98f51151b225f7563ee1cf2b50857d10 (diff)
sgi-xp: cleanup naming of partition defines
Cleanup naming of partition defines. Signed-off-by: Dean Nelson <dcn@sgi.com> Cc: Jack Steiner <steiner@sgi.com> Cc: "Luck, Tony" <tony.luck@intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/misc/sgi-xp/xpc_channel.c')
-rw-r--r--drivers/misc/sgi-xp/xpc_channel.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/misc/sgi-xp/xpc_channel.c b/drivers/misc/sgi-xp/xpc_channel.c
index d7a15f1a78a5..17ab75d69e83 100644
--- a/drivers/misc/sgi-xp/xpc_channel.c
+++ b/drivers/misc/sgi-xp/xpc_channel.c
@@ -99,7 +99,7 @@ xpc_process_disconnect(struct xpc_channel *ch, unsigned long *irq_flags)
99 DBUG_ON((ch->flags & XPC_C_CONNECTEDCALLOUT_MADE) && 99 DBUG_ON((ch->flags & XPC_C_CONNECTEDCALLOUT_MADE) &&
100 !(ch->flags & XPC_C_DISCONNECTINGCALLOUT_MADE)); 100 !(ch->flags & XPC_C_DISCONNECTINGCALLOUT_MADE));
101 101
102 if (part->act_state == XPC_P_DEACTIVATING) { 102 if (part->act_state == XPC_P_AS_DEACTIVATING) {
103 /* can't proceed until the other side disengages from us */ 103 /* can't proceed until the other side disengages from us */
104 if (xpc_partition_engaged(ch->partid)) 104 if (xpc_partition_engaged(ch->partid))
105 return; 105 return;
@@ -155,7 +155,7 @@ xpc_process_disconnect(struct xpc_channel *ch, unsigned long *irq_flags)
155 /* we won't lose the CPU since we're holding ch->lock */ 155 /* we won't lose the CPU since we're holding ch->lock */
156 complete(&ch->wdisconnect_wait); 156 complete(&ch->wdisconnect_wait);
157 } else if (ch->delayed_chctl_flags) { 157 } else if (ch->delayed_chctl_flags) {
158 if (part->act_state != XPC_P_DEACTIVATING) { 158 if (part->act_state != XPC_P_AS_DEACTIVATING) {
159 /* time to take action on any delayed chctl flags */ 159 /* time to take action on any delayed chctl flags */
160 spin_lock(&part->chctl_lock); 160 spin_lock(&part->chctl_lock);
161 part->chctl.flags[ch->number] |= 161 part->chctl.flags[ch->number] |=
@@ -276,7 +276,7 @@ again:
276 "%d, channel=%d\n", ch->partid, ch->number); 276 "%d, channel=%d\n", ch->partid, ch->number);
277 277
278 if (ch->flags & XPC_C_DISCONNECTED) { 278 if (ch->flags & XPC_C_DISCONNECTED) {
279 DBUG_ON(part->act_state != XPC_P_DEACTIVATING); 279 DBUG_ON(part->act_state != XPC_P_AS_DEACTIVATING);
280 spin_unlock_irqrestore(&ch->lock, irq_flags); 280 spin_unlock_irqrestore(&ch->lock, irq_flags);
281 return; 281 return;
282 } 282 }
@@ -312,7 +312,7 @@ again:
312 "channel=%d\n", args->msg_size, args->local_nentries, 312 "channel=%d\n", args->msg_size, args->local_nentries,
313 ch->partid, ch->number); 313 ch->partid, ch->number);
314 314
315 if (part->act_state == XPC_P_DEACTIVATING || 315 if (part->act_state == XPC_P_AS_DEACTIVATING ||
316 (ch->flags & XPC_C_ROPENREQUEST)) { 316 (ch->flags & XPC_C_ROPENREQUEST)) {
317 spin_unlock_irqrestore(&ch->lock, irq_flags); 317 spin_unlock_irqrestore(&ch->lock, irq_flags);
318 return; 318 return;
@@ -546,7 +546,7 @@ xpc_process_sent_chctl_flags(struct xpc_partition *part)
546 continue; 546 continue;
547 } 547 }
548 548
549 if (part->act_state == XPC_P_DEACTIVATING) 549 if (part->act_state == XPC_P_AS_DEACTIVATING)
550 continue; 550 continue;
551 551
552 if (!(ch_flags & XPC_C_CONNECTED)) { 552 if (!(ch_flags & XPC_C_CONNECTED)) {