aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/sgi-xp/xpc_partition.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_partition.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_partition.c')
-rw-r--r--drivers/misc/sgi-xp/xpc_partition.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/misc/sgi-xp/xpc_partition.c b/drivers/misc/sgi-xp/xpc_partition.c
index f150dbfcfcc7..b5fb21641130 100644
--- a/drivers/misc/sgi-xp/xpc_partition.c
+++ b/drivers/misc/sgi-xp/xpc_partition.c
@@ -273,9 +273,9 @@ xpc_partition_disengaged(struct xpc_partition *part)
273 if (!in_interrupt()) 273 if (!in_interrupt())
274 del_singleshot_timer_sync(&part->disengage_timer); 274 del_singleshot_timer_sync(&part->disengage_timer);
275 275
276 DBUG_ON(part->act_state != XPC_P_DEACTIVATING && 276 DBUG_ON(part->act_state != XPC_P_AS_DEACTIVATING &&
277 part->act_state != XPC_P_INACTIVE); 277 part->act_state != XPC_P_AS_INACTIVE);
278 if (part->act_state != XPC_P_INACTIVE) 278 if (part->act_state != XPC_P_AS_INACTIVE)
279 xpc_wakeup_channel_mgr(part); 279 xpc_wakeup_channel_mgr(part);
280 280
281 xpc_cancel_partition_deactivation_request(part); 281 xpc_cancel_partition_deactivation_request(part);
@@ -295,8 +295,8 @@ xpc_mark_partition_active(struct xpc_partition *part)
295 dev_dbg(xpc_part, "setting partition %d to ACTIVE\n", XPC_PARTID(part)); 295 dev_dbg(xpc_part, "setting partition %d to ACTIVE\n", XPC_PARTID(part));
296 296
297 spin_lock_irqsave(&part->act_lock, irq_flags); 297 spin_lock_irqsave(&part->act_lock, irq_flags);
298 if (part->act_state == XPC_P_ACTIVATING) { 298 if (part->act_state == XPC_P_AS_ACTIVATING) {
299 part->act_state = XPC_P_ACTIVE; 299 part->act_state = XPC_P_AS_ACTIVE;
300 ret = xpSuccess; 300 ret = xpSuccess;
301 } else { 301 } else {
302 DBUG_ON(part->reason == xpSuccess); 302 DBUG_ON(part->reason == xpSuccess);
@@ -318,7 +318,7 @@ xpc_deactivate_partition(const int line, struct xpc_partition *part,
318 318
319 spin_lock_irqsave(&part->act_lock, irq_flags); 319 spin_lock_irqsave(&part->act_lock, irq_flags);
320 320
321 if (part->act_state == XPC_P_INACTIVE) { 321 if (part->act_state == XPC_P_AS_INACTIVE) {
322 XPC_SET_REASON(part, reason, line); 322 XPC_SET_REASON(part, reason, line);
323 spin_unlock_irqrestore(&part->act_lock, irq_flags); 323 spin_unlock_irqrestore(&part->act_lock, irq_flags);
324 if (reason == xpReactivating) { 324 if (reason == xpReactivating) {
@@ -327,7 +327,7 @@ xpc_deactivate_partition(const int line, struct xpc_partition *part,
327 } 327 }
328 return; 328 return;
329 } 329 }
330 if (part->act_state == XPC_P_DEACTIVATING) { 330 if (part->act_state == XPC_P_AS_DEACTIVATING) {
331 if ((part->reason == xpUnloading && reason != xpUnloading) || 331 if ((part->reason == xpUnloading && reason != xpUnloading) ||
332 reason == xpReactivating) { 332 reason == xpReactivating) {
333 XPC_SET_REASON(part, reason, line); 333 XPC_SET_REASON(part, reason, line);
@@ -336,7 +336,7 @@ xpc_deactivate_partition(const int line, struct xpc_partition *part,
336 return; 336 return;
337 } 337 }
338 338
339 part->act_state = XPC_P_DEACTIVATING; 339 part->act_state = XPC_P_AS_DEACTIVATING;
340 XPC_SET_REASON(part, reason, line); 340 XPC_SET_REASON(part, reason, line);
341 341
342 spin_unlock_irqrestore(&part->act_lock, irq_flags); 342 spin_unlock_irqrestore(&part->act_lock, irq_flags);
@@ -367,7 +367,7 @@ xpc_mark_partition_inactive(struct xpc_partition *part)
367 XPC_PARTID(part)); 367 XPC_PARTID(part));
368 368
369 spin_lock_irqsave(&part->act_lock, irq_flags); 369 spin_lock_irqsave(&part->act_lock, irq_flags);
370 part->act_state = XPC_P_INACTIVE; 370 part->act_state = XPC_P_AS_INACTIVE;
371 spin_unlock_irqrestore(&part->act_lock, irq_flags); 371 spin_unlock_irqrestore(&part->act_lock, irq_flags);
372 part->remote_rp_pa = 0; 372 part->remote_rp_pa = 0;
373} 373}