lkml.org 
[lkml]   [2008]   [Sep]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[RFC 03/13] xen: use new for_each_online_cpu_mask_nr function
  * Change the send_IPI_mask function in xen to not require a local
cpumask_t variable.

Applies to linux-2.6.tip/master.

Signed-off-by: Mike Travis <travis@sgi.com>
---
arch/x86/xen/smp.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)

--- linux-2.6.tip.orig/arch/x86/xen/smp.c
+++ linux-2.6.tip/arch/x86/xen/smp.c
@@ -358,15 +358,11 @@ static void xen_smp_send_reschedule(int
xen_send_IPI_one(cpu, XEN_RESCHEDULE_VECTOR);
}

-static void xen_send_IPI_mask(const cpumask_t *inmask, enum ipi_vector vector)
+static void xen_send_IPI_mask(const cpumask_t *mask, enum ipi_vector vector)
{
unsigned cpu;
- cpumask_t mask;

- mask = *inmask;
- cpus_and(mask, mask, cpu_online_map);
-
- for_each_cpu_mask_nr(cpu, mask)
+ for_each_online_cpu_mask_nr(cpu, *mask)
xen_send_IPI_one(cpu, vector);
}

--


\
 
 \ /
  Last update: 2008-09-07 01:55    [W:0.153 / U:5.112 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site