public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cpumask: use modern cpumask functions in drivers/scsi/fcoe/libfcoe.c
@ 2009-03-09  4:06 Rusty Russell
  0 siblings, 0 replies; only message in thread
From: Rusty Russell @ 2009-03-09  4:06 UTC (permalink / raw)
  To: devel; +Cc: linux-kernel, linux-scsi

Impact: use new API

first_cpu(cpu_online_map) => cpumask_first(cpu_online_mask)

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: devel@open-fcoe.org
---
 drivers/scsi/fcoe/libfcoe.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/scsi/fcoe/libfcoe.c b/drivers/scsi/fcoe/libfcoe.c
--- a/drivers/scsi/fcoe/libfcoe.c
+++ b/drivers/scsi/fcoe/libfcoe.c
@@ -237,7 +237,7 @@ int fcoe_rcv(struct sk_buff *skb, struct
 	 */
 	cpu_idx = oxid & (num_online_cpus() - 1);
 	if (!fcoe_percpu[cpu_idx] || !cpu_online(cpu_idx))
-		cpu_idx = first_cpu(cpu_online_map);
+		cpu_idx = cpumask_first(cpu_online_mask);
 #endif
 	fps = fcoe_percpu[cpu_idx];
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-03-09  4:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-09  4:06 [PATCH] cpumask: use modern cpumask functions in drivers/scsi/fcoe/libfcoe.c Rusty Russell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox