aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/sgi-xp/xpc_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/misc/sgi-xp/xpc_main.c')
-rw-r--r--drivers/misc/sgi-xp/xpc_main.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/misc/sgi-xp/xpc_main.c b/drivers/misc/sgi-xp/xpc_main.c
index 10dac3652b23..4a6eb3774759 100644
--- a/drivers/misc/sgi-xp/xpc_main.c
+++ b/drivers/misc/sgi-xp/xpc_main.c
@@ -233,7 +233,7 @@ xpc_timeout_partition_disengage_request(unsigned long data)
233{ 233{
234 struct xpc_partition *part = (struct xpc_partition *)data; 234 struct xpc_partition *part = (struct xpc_partition *)data;
235 235
236 DBUG_ON(time_before(jiffies, part->disengage_request_timeout)); 236 DBUG_ON(time_is_after_jiffies(part->disengage_request_timeout));
237 237
238 (void)xpc_partition_disengaged(part); 238 (void)xpc_partition_disengaged(part);
239 239
@@ -262,7 +262,7 @@ xpc_hb_beater(unsigned long dummy)
262{ 262{
263 xpc_increment_heartbeat(); 263 xpc_increment_heartbeat();
264 264
265 if (time_after_eq(jiffies, xpc_hb_check_timeout)) 265 if (time_is_before_eq_jiffies(xpc_hb_check_timeout))
266 wake_up_interruptible(&xpc_act_IRQ_wq); 266 wake_up_interruptible(&xpc_act_IRQ_wq);
267 267
268 xpc_hb_timer.expires = jiffies + (xpc_hb_interval * HZ); 268 xpc_hb_timer.expires = jiffies + (xpc_hb_interval * HZ);
@@ -312,7 +312,7 @@ xpc_hb_checker(void *ignore)
312 atomic_read(&xpc_act_IRQ_rcvd) - last_IRQ_count); 312 atomic_read(&xpc_act_IRQ_rcvd) - last_IRQ_count);
313 313
314 /* checking of remote heartbeats is skewed by IRQ handling */ 314 /* checking of remote heartbeats is skewed by IRQ handling */
315 if (time_after_eq(jiffies, xpc_hb_check_timeout)) { 315 if (time_is_before_eq_jiffies(xpc_hb_check_timeout)) {
316 dev_dbg(xpc_part, "checking remote heartbeats\n"); 316 dev_dbg(xpc_part, "checking remote heartbeats\n");
317 xpc_check_remote_hb(); 317 xpc_check_remote_hb();
318 318
@@ -344,8 +344,8 @@ xpc_hb_checker(void *ignore)
344 (void)wait_event_interruptible(xpc_act_IRQ_wq, 344 (void)wait_event_interruptible(xpc_act_IRQ_wq,
345 (last_IRQ_count < 345 (last_IRQ_count <
346 atomic_read(&xpc_act_IRQ_rcvd) 346 atomic_read(&xpc_act_IRQ_rcvd)
347 || time_after_eq(jiffies, 347 || time_is_before_eq_jiffies(
348 xpc_hb_check_timeout) || 348 xpc_hb_check_timeout) ||
349 xpc_exiting)); 349 xpc_exiting));
350 } 350 }
351 351
@@ -929,7 +929,7 @@ xpc_do_exit(enum xp_retval reason)
929 } 929 }
930 930
931 if (xpc_partition_engaged(-1UL)) { 931 if (xpc_partition_engaged(-1UL)) {
932 if (time_after(jiffies, printmsg_time)) { 932 if (time_is_before_jiffies(printmsg_time)) {
933 dev_info(xpc_part, "waiting for remote " 933 dev_info(xpc_part, "waiting for remote "
934 "partitions to disengage, timeout in " 934 "partitions to disengage, timeout in "
935 "%ld seconds\n", 935 "%ld seconds\n",
@@ -964,7 +964,7 @@ xpc_do_exit(enum xp_retval reason)
964 DBUG_ON(xpc_any_hbs_allowed() != 0); 964 DBUG_ON(xpc_any_hbs_allowed() != 0);
965 965
966 /* indicate to others that our reserved page is uninitialized */ 966 /* indicate to others that our reserved page is uninitialized */
967 xpc_rsvd_page->stamp = ZERO_STAMP; 967 xpc_rsvd_page->stamp = 0;
968 968
969 if (reason == xpUnloading) { 969 if (reason == xpUnloading) {
970 (void)unregister_die_notifier(&xpc_die_notifier); 970 (void)unregister_die_notifier(&xpc_die_notifier);
@@ -1295,7 +1295,7 @@ xpc_init(void)
1295 /* initialization was not successful */ 1295 /* initialization was not successful */
1296out_4: 1296out_4:
1297 /* indicate to others that our reserved page is uninitialized */ 1297 /* indicate to others that our reserved page is uninitialized */
1298 xpc_rsvd_page->stamp = ZERO_STAMP; 1298 xpc_rsvd_page->stamp = 0;
1299 1299
1300 (void)unregister_die_notifier(&xpc_die_notifier); 1300 (void)unregister_die_notifier(&xpc_die_notifier);
1301 (void)unregister_reboot_notifier(&xpc_reboot_notifier); 1301 (void)unregister_reboot_notifier(&xpc_reboot_notifier);