[PATCH] cpumask: use modern cpumask functions in drivers/scsi/fcoe/libfcoe.c

From: Rusty Russell
Date: Mon Mar 09 2009 - 00:06:30 EST


Impact: use new API

first_cpu(cpu_online_map) => cpumask_first(cpu_online_mask)

Signed-off-by: Rusty Russell <rusty@xxxxxxxxxxxxxxx>
Cc: devel@xxxxxxxxxxxxx
---
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];

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/