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_sn2.c | |
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_sn2.c')
-rw-r--r-- | drivers/misc/sgi-xp/xpc_sn2.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/misc/sgi-xp/xpc_sn2.c b/drivers/misc/sgi-xp/xpc_sn2.c index d34cdd533a9..d1ccadc0857 100644 --- a/drivers/misc/sgi-xp/xpc_sn2.c +++ b/drivers/misc/sgi-xp/xpc_sn2.c | |||
@@ -327,7 +327,7 @@ xpc_send_notify_IRQ_sn2(struct xpc_channel *ch, u8 chctl_flag, | |||
327 | union xpc_channel_ctl_flags chctl = { 0 }; | 327 | union xpc_channel_ctl_flags chctl = { 0 }; |
328 | enum xp_retval ret; | 328 | enum xp_retval ret; |
329 | 329 | ||
330 | if (likely(part->act_state != XPC_P_DEACTIVATING)) { | 330 | if (likely(part->act_state != XPC_P_AS_DEACTIVATING)) { |
331 | chctl.flags[ch->number] = chctl_flag; | 331 | chctl.flags[ch->number] = chctl_flag; |
332 | ret = xpc_send_IRQ_sn2(part_sn2->remote_chctl_amo_va, | 332 | ret = xpc_send_IRQ_sn2(part_sn2->remote_chctl_amo_va, |
333 | chctl.all_flags, | 333 | chctl.all_flags, |
@@ -975,7 +975,7 @@ xpc_identify_activate_IRQ_req_sn2(int nasid) | |||
975 | remote_vars->heartbeat, remote_vars->heartbeating_to_mask[0]); | 975 | remote_vars->heartbeat, remote_vars->heartbeating_to_mask[0]); |
976 | 976 | ||
977 | if (xpc_partition_disengaged(part) && | 977 | if (xpc_partition_disengaged(part) && |
978 | part->act_state == XPC_P_INACTIVE) { | 978 | part->act_state == XPC_P_AS_INACTIVE) { |
979 | 979 | ||
980 | xpc_update_partition_info_sn2(part, remote_rp_version, | 980 | xpc_update_partition_info_sn2(part, remote_rp_version, |
981 | &remote_rp_ts_jiffies, | 981 | &remote_rp_ts_jiffies, |
@@ -1257,10 +1257,10 @@ xpc_setup_infrastructure_sn2(struct xpc_partition *part) | |||
1257 | } | 1257 | } |
1258 | 1258 | ||
1259 | /* | 1259 | /* |
1260 | * With the setting of the partition setup_state to XPC_P_SETUP, we're | 1260 | * With the setting of the partition setup_state to XPC_P_SS_SETUP, |
1261 | * declaring that this partition is ready to go. | 1261 | * we're declaring that this partition is ready to go. |
1262 | */ | 1262 | */ |
1263 | part->setup_state = XPC_P_SETUP; | 1263 | part->setup_state = XPC_P_SS_SETUP; |
1264 | 1264 | ||
1265 | /* | 1265 | /* |
1266 | * Setup the per partition specific variables required by the | 1266 | * Setup the per partition specific variables required by the |
@@ -1323,8 +1323,8 @@ xpc_teardown_infrastructure_sn2(struct xpc_partition *part) | |||
1323 | 1323 | ||
1324 | DBUG_ON(atomic_read(&part->nchannels_engaged) != 0); | 1324 | DBUG_ON(atomic_read(&part->nchannels_engaged) != 0); |
1325 | DBUG_ON(atomic_read(&part->nchannels_active) != 0); | 1325 | DBUG_ON(atomic_read(&part->nchannels_active) != 0); |
1326 | DBUG_ON(part->setup_state != XPC_P_SETUP); | 1326 | DBUG_ON(part->setup_state != XPC_P_SS_SETUP); |
1327 | part->setup_state = XPC_P_WTEARDOWN; | 1327 | part->setup_state = XPC_P_SS_WTEARDOWN; |
1328 | 1328 | ||
1329 | xpc_vars_part_sn2[partid].magic = 0; | 1329 | xpc_vars_part_sn2[partid].magic = 0; |
1330 | 1330 | ||
@@ -1338,7 +1338,7 @@ xpc_teardown_infrastructure_sn2(struct xpc_partition *part) | |||
1338 | 1338 | ||
1339 | /* now we can begin tearing down the infrastructure */ | 1339 | /* now we can begin tearing down the infrastructure */ |
1340 | 1340 | ||
1341 | part->setup_state = XPC_P_TORNDOWN; | 1341 | part->setup_state = XPC_P_SS_TORNDOWN; |
1342 | 1342 | ||
1343 | /* in case we've still got outstanding timers registered... */ | 1343 | /* in case we've still got outstanding timers registered... */ |
1344 | del_timer_sync(&part_sn2->dropped_notify_IRQ_timer); | 1344 | del_timer_sync(&part_sn2->dropped_notify_IRQ_timer); |
@@ -1375,7 +1375,7 @@ xpc_pull_remote_cachelines_sn2(struct xpc_partition *part, void *dst, | |||
1375 | DBUG_ON((unsigned long)dst != L1_CACHE_ALIGN((unsigned long)dst)); | 1375 | DBUG_ON((unsigned long)dst != L1_CACHE_ALIGN((unsigned long)dst)); |
1376 | DBUG_ON(cnt != L1_CACHE_ALIGN(cnt)); | 1376 | DBUG_ON(cnt != L1_CACHE_ALIGN(cnt)); |
1377 | 1377 | ||
1378 | if (part->act_state == XPC_P_DEACTIVATING) | 1378 | if (part->act_state == XPC_P_AS_DEACTIVATING) |
1379 | return part->reason; | 1379 | return part->reason; |
1380 | 1380 | ||
1381 | ret = xp_remote_memcpy(xp_pa(dst), src_pa, cnt); | 1381 | ret = xp_remote_memcpy(xp_pa(dst), src_pa, cnt); |
@@ -1534,7 +1534,7 @@ xpc_make_first_contact_sn2(struct xpc_partition *part) | |||
1534 | /* wait a 1/4 of a second or so */ | 1534 | /* wait a 1/4 of a second or so */ |
1535 | (void)msleep_interruptible(250); | 1535 | (void)msleep_interruptible(250); |
1536 | 1536 | ||
1537 | if (part->act_state == XPC_P_DEACTIVATING) | 1537 | if (part->act_state == XPC_P_AS_DEACTIVATING) |
1538 | return part->reason; | 1538 | return part->reason; |
1539 | } | 1539 | } |
1540 | 1540 | ||