Skip to contentSkip to conversation

staging: rdma: use setup_timer() api

PATCH Superseded Gujulan Elango, Hari Prasath (H.) 3 participants 3 messages Feb 4, 2016 1 message not in the archive

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: rdma: use setup_timer() api

From: Hari Prasath Gujulan Elango <[email protected]>

Date: Thu, 4 Feb 2016 18:46:31 +0530
Replace the timer API's to initialize a timer & then assign the callback function by the setup_timer() API.

---
 drivers/staging/rdma/ehca/ehca_main.c | 3 +--
 drivers/staging/rdma/hfi1/verbs.c     | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)
drivers/staging/rdma/ehca/ehca_main.c +1 -2
index 832f22f..e545712 100644
@@ -1073,8 +1073,7 @@ static int __init ehca_module_init(void)
 		ehca_gen_err("WARNING!!!");
 		ehca_gen_err("It is possible to lose interrupts.");
 	} else {
-		init_timer(&poll_eqs_timer);
-		poll_eqs_timer.function = ehca_poll_eqs;
+		setup_timer(&poll_eqs_timer, ehca_poll_eqs, 0UL);
 		poll_eqs_timer.expires = jiffies + HZ;
 		add_timer(&poll_eqs_timer);
 	}
drivers/staging/rdma/hfi1/verbs.c +1 -2
index 09b8d41..769388d 100644
@@ -1926,8 +1926,7 @@ int hfi1_register_ib_device(struct hfi1_devdata *dd)
 	spin_lock_init(&dev->n_qps_lock);
 	spin_lock_init(&dev->n_srqs_lock);
 	spin_lock_init(&dev->n_mcast_grps_lock);
-	init_timer(&dev->mem_timer);
-	dev->mem_timer.function = mem_timer;
+	setup_timer(&dev->mem_timer, mem_timer, 0UL);
 	dev->mem_timer.data = (unsigned long) dev;
 
 	/*
Signature · 1 line
1.9.1
#1 lore raw
Quoted 4 lines

Subject: [PATCH] staging: rdma: use setup_timer() api

From: Hari Prasath Gujulan Elango <[email protected]>

Doug,

We are going to add this to the rdmavt/hfi1/qib work, with the appropriate authorship credit. Otherwise, there will certainly be conflicts.

Hari,

Note that ehca is going away.

In addition, you missed exploiting the third argument to setup_timer() for the callback context.

Mike
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 32E1700B9017364D9B60AED9960492BC25A05B89-RjuIdWtd+YbTXloPLtfHfbfspsVTdybXVpNB7YpNyf8@public.gmane.org

#3 lore raw
Quoted 5 lines · Mike Marciniszyn
Quoted 4 lines

Subject: [PATCH] staging: rdma: use setup_timer() api

From: Hari Prasath Gujulan Elango <[email protected]>

Quoted 7 lines

Doug,

We are going to add this to the rdmavt/hfi1/qib work, with the appropriate authorship credit. Otherwise, there will certainly be conflicts.

Hari,

Note that ehca is going away.

Actually ehca is already gone. From Dougs for-4.5-rc tree.

12:30:25 > ls
Kconfig Makefile hfi1/

Ira

Quoted 4 lines

In addition, you missed exploiting the third argument to setup_timer() for the callback context.

Mike

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html