aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/sgi-xp/xpc.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/misc/sgi-xp/xpc.h')
-rw-r--r--drivers/misc/sgi-xp/xpc.h26
1 files changed, 3 insertions, 23 deletions
diff --git a/drivers/misc/sgi-xp/xpc.h b/drivers/misc/sgi-xp/xpc.h
index a3a67485cf8d..56bf5dcc391d 100644
--- a/drivers/misc/sgi-xp/xpc.h
+++ b/drivers/misc/sgi-xp/xpc.h
@@ -115,8 +115,8 @@ struct xpc_rsvd_page {
115 u64 vars_pa; /* physical address of struct xpc_vars */ 115 u64 vars_pa; /* physical address of struct xpc_vars */
116 u64 activate_mq_gpa; /* global phys address of activate_mq */ 116 u64 activate_mq_gpa; /* global phys address of activate_mq */
117 } sn; 117 } sn;
118 struct timespec stamp; /* time when reserved page was setup by XPC */ 118 unsigned long stamp; /* time when reserved page was setup by XPC */
119 u64 pad2[9]; /* align to last u64 in 2nd 64-byte cacheline */ 119 u64 pad2[10]; /* align to last u64 in 2nd 64-byte cacheline */
120 u64 SAL_nasids_size; /* SAL: size of each nasid mask in bytes */ 120 u64 SAL_nasids_size; /* SAL: size of each nasid mask in bytes */
121}; 121};
122 122
@@ -125,26 +125,6 @@ struct xpc_rsvd_page {
125#define XPC_SUPPORTS_RP_STAMP(_version) \ 125#define XPC_SUPPORTS_RP_STAMP(_version) \
126 (_version >= _XPC_VERSION(1, 1)) 126 (_version >= _XPC_VERSION(1, 1))
127 127
128#define ZERO_STAMP ((struct timespec){0, 0})
129/*
130 * compare stamps - the return value is:
131 *
132 * < 0, if stamp1 < stamp2
133 * = 0, if stamp1 == stamp2
134 * > 0, if stamp1 > stamp2
135 */
136static inline int
137xpc_compare_stamps(struct timespec *stamp1, struct timespec *stamp2)
138{
139 int ret;
140
141 ret = stamp1->tv_sec - stamp2->tv_sec;
142 if (ret == 0)
143 ret = stamp1->tv_nsec - stamp2->tv_nsec;
144
145 return ret;
146}
147
148/* 128/*
149 * Define the structures by which XPC variables can be exported to other 129 * Define the structures by which XPC variables can be exported to other
150 * partitions. (There are two: struct xpc_vars and struct xpc_vars_part) 130 * partitions. (There are two: struct xpc_vars and struct xpc_vars_part)
@@ -492,7 +472,7 @@ struct xpc_partition {
492 /* XPC HB infrastructure */ 472 /* XPC HB infrastructure */
493 473
494 u8 remote_rp_version; /* version# of partition's rsvd pg */ 474 u8 remote_rp_version; /* version# of partition's rsvd pg */
495 struct timespec remote_rp_stamp; /* time when rsvd pg was initialized */ 475 unsigned long remote_rp_stamp; /* time when rsvd pg was initialized */
496 u64 remote_rp_pa; /* phys addr of partition's rsvd pg */ 476 u64 remote_rp_pa; /* phys addr of partition's rsvd pg */
497 u64 remote_vars_pa; /* phys addr of partition's vars */ 477 u64 remote_vars_pa; /* phys addr of partition's vars */
498 u64 remote_vars_part_pa; /* phys addr of partition's vars part */ 478 u64 remote_vars_part_pa; /* phys addr of partition's vars part */