diff options
author | Dean Nelson <dcn@sgi.com> | 2008-07-30 01:34:18 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-30 12:41:50 -0400 |
commit | 83469b5525b4a35be40b17cb41d64118d84d9f80 (patch) | |
tree | e258238c04b25892c1b1fc85ef42b67ce5bac873 /drivers/misc/sgi-xp/xpc.h | |
parent | 61deb86e98f51151b225f7563ee1cf2b50857d10 (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.h')
-rw-r--r-- | drivers/misc/sgi-xp/xpc.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/misc/sgi-xp/xpc.h b/drivers/misc/sgi-xp/xpc.h index f258f89b8d3c..1e48f7765050 100644 --- a/drivers/misc/sgi-xp/xpc.h +++ b/drivers/misc/sgi-xp/xpc.h | |||
@@ -576,21 +576,21 @@ struct xpc_partition { | |||
576 | 576 | ||
577 | /* struct xpc_partition act_state values (for XPC HB) */ | 577 | /* struct xpc_partition act_state values (for XPC HB) */ |
578 | 578 | ||
579 | #define XPC_P_INACTIVE 0x00 /* partition is not active */ | 579 | #define XPC_P_AS_INACTIVE 0x00 /* partition is not active */ |
580 | #define XPC_P_ACTIVATION_REQ 0x01 /* created thread to activate */ | 580 | #define XPC_P_AS_ACTIVATION_REQ 0x01 /* created thread to activate */ |
581 | #define XPC_P_ACTIVATING 0x02 /* activation thread started */ | 581 | #define XPC_P_AS_ACTIVATING 0x02 /* activation thread started */ |
582 | #define XPC_P_ACTIVE 0x03 /* xpc_partition_up() was called */ | 582 | #define XPC_P_AS_ACTIVE 0x03 /* xpc_partition_up() was called */ |
583 | #define XPC_P_DEACTIVATING 0x04 /* partition deactivation initiated */ | 583 | #define XPC_P_AS_DEACTIVATING 0x04 /* partition deactivation initiated */ |
584 | 584 | ||
585 | #define XPC_DEACTIVATE_PARTITION(_p, _reason) \ | 585 | #define XPC_DEACTIVATE_PARTITION(_p, _reason) \ |
586 | xpc_deactivate_partition(__LINE__, (_p), (_reason)) | 586 | xpc_deactivate_partition(__LINE__, (_p), (_reason)) |
587 | 587 | ||
588 | /* struct xpc_partition setup_state values */ | 588 | /* struct xpc_partition setup_state values */ |
589 | 589 | ||
590 | #define XPC_P_UNSET 0x00 /* infrastructure was never setup */ | 590 | #define XPC_P_SS_UNSET 0x00 /* infrastructure was never setup */ |
591 | #define XPC_P_SETUP 0x01 /* infrastructure is setup */ | 591 | #define XPC_P_SS_SETUP 0x01 /* infrastructure is setup */ |
592 | #define XPC_P_WTEARDOWN 0x02 /* waiting to teardown infrastructure */ | 592 | #define XPC_P_SS_WTEARDOWN 0x02 /* waiting to teardown infrastructure */ |
593 | #define XPC_P_TORNDOWN 0x03 /* infrastructure is torndown */ | 593 | #define XPC_P_SS_TORNDOWN 0x03 /* infrastructure is torndown */ |
594 | 594 | ||
595 | /* | 595 | /* |
596 | * struct xpc_partition_sn2's dropped notify IRQ timer is set to wait the | 596 | * struct xpc_partition_sn2's dropped notify IRQ timer is set to wait the |
@@ -787,7 +787,7 @@ xpc_part_deref(struct xpc_partition *part) | |||
787 | s32 refs = atomic_dec_return(&part->references); | 787 | s32 refs = atomic_dec_return(&part->references); |
788 | 788 | ||
789 | DBUG_ON(refs < 0); | 789 | DBUG_ON(refs < 0); |
790 | if (refs == 0 && part->setup_state == XPC_P_WTEARDOWN) | 790 | if (refs == 0 && part->setup_state == XPC_P_SS_WTEARDOWN) |
791 | wake_up(&part->teardown_wq); | 791 | wake_up(&part->teardown_wq); |
792 | } | 792 | } |
793 | 793 | ||
@@ -797,7 +797,7 @@ xpc_part_ref(struct xpc_partition *part) | |||
797 | int setup; | 797 | int setup; |
798 | 798 | ||
799 | atomic_inc(&part->references); | 799 | atomic_inc(&part->references); |
800 | setup = (part->setup_state == XPC_P_SETUP); | 800 | setup = (part->setup_state == XPC_P_SS_SETUP); |
801 | if (!setup) | 801 | if (!setup) |
802 | xpc_part_deref(part); | 802 | xpc_part_deref(part); |
803 | 803 | ||