aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/sgi-xp/xpc_sn2.c
diff options
context:
space:
mode:
authorDean Nelson <dcn@sgi.com>2008-07-30 01:34:15 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-07-30 12:41:50 -0400
commit81fe7883d2c8a80a7145ad22f8cd8514d05412b9 (patch)
tree0e4e1200ad1ff4fb3e31f61c6befc8391c18d1e3 /drivers/misc/sgi-xp/xpc_sn2.c
parent04de741885bc7565a28150e82c56a56e544440e6 (diff)
sgi-xp: add 'jiffies' to reserved page's timestamp name
Rename XPC's reserved page's timestamp member to reflect the units of time involved. Signed-off-by: Dean Nelson <dcn@sgi.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.c26
1 files changed, 14 insertions, 12 deletions
diff --git a/drivers/misc/sgi-xp/xpc_sn2.c b/drivers/misc/sgi-xp/xpc_sn2.c
index f82889f60151..4b5f69edf0d2 100644
--- a/drivers/misc/sgi-xp/xpc_sn2.c
+++ b/drivers/misc/sgi-xp/xpc_sn2.c
@@ -863,8 +863,8 @@ xpc_partition_deactivation_requested_sn2(short partid)
863 */ 863 */
864static void 864static void
865xpc_update_partition_info_sn2(struct xpc_partition *part, u8 remote_rp_version, 865xpc_update_partition_info_sn2(struct xpc_partition *part, u8 remote_rp_version,
866 unsigned long *remote_rp_stamp, u64 remote_rp_pa, 866 unsigned long *remote_rp_ts_jiffies,
867 u64 remote_vars_pa, 867 u64 remote_rp_pa, u64 remote_vars_pa,
868 struct xpc_vars_sn2 *remote_vars) 868 struct xpc_vars_sn2 *remote_vars)
869{ 869{
870 struct xpc_partition_sn2 *part_sn2 = &part->sn.sn2; 870 struct xpc_partition_sn2 *part_sn2 = &part->sn.sn2;
@@ -873,9 +873,9 @@ xpc_update_partition_info_sn2(struct xpc_partition *part, u8 remote_rp_version,
873 dev_dbg(xpc_part, " remote_rp_version = 0x%016x\n", 873 dev_dbg(xpc_part, " remote_rp_version = 0x%016x\n",
874 part->remote_rp_version); 874 part->remote_rp_version);
875 875
876 part->remote_rp_stamp = *remote_rp_stamp; 876 part->remote_rp_ts_jiffies = *remote_rp_ts_jiffies;
877 dev_dbg(xpc_part, " remote_rp_stamp = 0x%016lx\n", 877 dev_dbg(xpc_part, " remote_rp_ts_jiffies = 0x%016lx\n",
878 part->remote_rp_stamp); 878 part->remote_rp_ts_jiffies);
879 879
880 part->remote_rp_pa = remote_rp_pa; 880 part->remote_rp_pa = remote_rp_pa;
881 dev_dbg(xpc_part, " remote_rp_pa = 0x%016lx\n", part->remote_rp_pa); 881 dev_dbg(xpc_part, " remote_rp_pa = 0x%016lx\n", part->remote_rp_pa);
@@ -933,7 +933,7 @@ xpc_identify_activate_IRQ_req_sn2(int nasid)
933 u64 remote_vars_pa; 933 u64 remote_vars_pa;
934 int remote_rp_version; 934 int remote_rp_version;
935 int reactivate = 0; 935 int reactivate = 0;
936 unsigned long remote_rp_stamp = 0; 936 unsigned long remote_rp_ts_jiffies = 0;
937 short partid; 937 short partid;
938 struct xpc_partition *part; 938 struct xpc_partition *part;
939 struct xpc_partition_sn2 *part_sn2; 939 struct xpc_partition_sn2 *part_sn2;
@@ -952,7 +952,7 @@ xpc_identify_activate_IRQ_req_sn2(int nasid)
952 952
953 remote_vars_pa = remote_rp->sn.vars_pa; 953 remote_vars_pa = remote_rp->sn.vars_pa;
954 remote_rp_version = remote_rp->version; 954 remote_rp_version = remote_rp->version;
955 remote_rp_stamp = remote_rp->stamp; 955 remote_rp_ts_jiffies = remote_rp->ts_jiffies;
956 956
957 partid = remote_rp->SAL_partid; 957 partid = remote_rp->SAL_partid;
958 part = &xpc_partitions[partid]; 958 part = &xpc_partitions[partid];
@@ -981,8 +981,9 @@ xpc_identify_activate_IRQ_req_sn2(int nasid)
981 part->act_state == XPC_P_INACTIVE) { 981 part->act_state == XPC_P_INACTIVE) {
982 982
983 xpc_update_partition_info_sn2(part, remote_rp_version, 983 xpc_update_partition_info_sn2(part, remote_rp_version,
984 &remote_rp_stamp, remote_rp_pa, 984 &remote_rp_ts_jiffies,
985 remote_vars_pa, remote_vars); 985 remote_rp_pa, remote_vars_pa,
986 remote_vars);
986 987
987 if (xpc_partition_deactivation_requested_sn2(partid)) { 988 if (xpc_partition_deactivation_requested_sn2(partid)) {
988 /* 989 /*
@@ -999,7 +1000,7 @@ xpc_identify_activate_IRQ_req_sn2(int nasid)
999 DBUG_ON(part->remote_rp_version == 0); 1000 DBUG_ON(part->remote_rp_version == 0);
1000 DBUG_ON(part_sn2->remote_vars_version == 0); 1001 DBUG_ON(part_sn2->remote_vars_version == 0);
1001 1002
1002 if (remote_rp_stamp != part->remote_rp_stamp) { 1003 if (remote_rp_ts_jiffies != part->remote_rp_ts_jiffies) {
1003 1004
1004 /* the other side rebooted */ 1005 /* the other side rebooted */
1005 1006
@@ -1007,8 +1008,9 @@ xpc_identify_activate_IRQ_req_sn2(int nasid)
1007 DBUG_ON(xpc_partition_deactivation_requested_sn2(partid)); 1008 DBUG_ON(xpc_partition_deactivation_requested_sn2(partid));
1008 1009
1009 xpc_update_partition_info_sn2(part, remote_rp_version, 1010 xpc_update_partition_info_sn2(part, remote_rp_version,
1010 &remote_rp_stamp, remote_rp_pa, 1011 &remote_rp_ts_jiffies,
1011 remote_vars_pa, remote_vars); 1012 remote_rp_pa, remote_vars_pa,
1013 remote_vars);
1012 reactivate = 1; 1014 reactivate = 1;
1013 } 1015 }
1014 1016