| 
         
xen-devel
[Xen-devel] Re: [patch 10/34] Xen-pv_ops: Simplify smp_call_function*() 
 
| 
To:  | 
Jeremy Fitzhardinge <jeremy@xxxxxxxx> | 
 
| 
Subject:  | 
[Xen-devel] Re: [patch 10/34] Xen-pv_ops: Simplify smp_call_function*() by using common implementation | 
 
| 
From:  | 
Randy Dunlap <rdunlap@xxxxxxxxxxxx> | 
 
| 
Date:  | 
Thu, 15 Mar 2007 19:38:04 -0700 | 
 
| 
Cc:  | 
Amsden <zach@xxxxxxxxxx>, Andrew Morton <akpm@xxxxxxxx>,	Rusty Russell <rusty@xxxxxxxxxxxxxxx>,	xen-devel@xxxxxxxxxxxxxxxxxxx, virtualization@xxxxxxxxxxxxxx,	Zachary, linux-kernel@xxxxxxxxxxxxxxx, Andi Kleen <ak@xxxxxxx>,	Chris Wright <chrisw@xxxxxxxxxxxx>, Andi Kleen <ak@xxxxxx>,	"Randy.Dunlap" <rdunlap@xxxxxxxxxxxx>, Stephane,	Eranian <eranian@xxxxxxxxxx>, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>,	Ingo Molnar <mingo@xxxxxxx> | 
 
| 
Delivery-date:  | 
Fri, 16 Mar 2007 03:20:35 -0700 | 
 
| 
Envelope-to:  | 
www-data@xxxxxxxxxxxxxxxxxx | 
 
| 
In-reply-to:  | 
<20070313233031.149028836@xxxxxxxx> | 
 
| 
List-help:  | 
<mailto:xen-devel-request@lists.xensource.com?subject=help> | 
 
| 
List-id:  | 
Xen developer discussion <xen-devel.lists.xensource.com> | 
 
| 
List-post:  | 
<mailto:xen-devel@lists.xensource.com> | 
 
| 
List-subscribe:  | 
<http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>,	<mailto:xen-devel-request@lists.xensource.com?subject=subscribe> | 
 
| 
List-unsubscribe:  | 
<http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>,	<mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe> | 
 
| 
Organization:  | 
YPO4 | 
 
| 
References:  | 
<20070313233017.933601256@xxxxxxxx>	<20070313233031.149028836@xxxxxxxx> | 
 
| 
Sender:  | 
xen-devel-bounces@xxxxxxxxxxxxxxxxxxx | 
 
 
 
On Tue, 13 Mar 2007 16:30:27 -0700 Jeremy Fitzhardinge wrote:
> smp_call_function and smp_call_function_single are almost complete
> duplicates of the same logic.  This patch combines them by
> implementing them in terms of the more general
> smp_call_function_mask().
The kernel-doc is still not quite correct.  Patch below applies
on top of this patch from Jeremy.
---
From: Randy Dunlap <randy.dunlap@xxxxxxxxxx>
Clean up arch/i386/kernel/smp.c after the Xen pv_ops patches for
smp_call_function variants.
Signed-off-by: Randy Dunlap <randy.dunlap@xxxxxxxxxx>
---
 arch/i386/kernel/smp.c |   13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)
--- linux-2621-rc3.orig/arch/i386/kernel/smp.c
+++ linux-2621-rc3/arch/i386/kernel/smp.c
@@ -517,14 +517,14 @@ static struct call_data_struct *call_dat
 
 
 /**
- * smp_call_function_mask(): Run a function on a set of other CPUs.
+ * smp_call_function_mask - Run a function on a set of other CPUs.
  * @mask: The set of cpus to run on.  Must not include the current cpu.
  * @func: The function to run. This must be fast and non-blocking.
  * @info: An arbitrary pointer to pass to the function.
  * @wait: If true, wait (atomically) until function has completed on other 
CPUs.
  *
  * Returns 0 on success, else a negative status code. Does not return until
- * remote CPUs are nearly ready to execute <<func>> or are or have finished.
+ * remote CPUs are nearly ready to execute func() or are or have finished.
  *
  * You must not call this function with disabled interrupts or from a
  * hardware interrupt handler or from a bottom half handler.
@@ -583,14 +583,14 @@ int smp_call_function_mask(cpumask_t mas
 }
 
 /**
- * smp_call_function(): Run a function on all other CPUs.
+ * smp_call_function - Run a function on all other CPUs.
  * @func: The function to run. This must be fast and non-blocking.
  * @info: An arbitrary pointer to pass to the function.
  * @nonatomic: currently unused.
  * @wait: If true, wait (atomically) until function has completed on other 
CPUs.
  *
  * Returns 0 on success, else a negative status code. Does not return until
- * remote CPUs are nearly ready to execute <<func>> or are or have executed.
+ * remote CPUs are nearly ready to execute func() or are or have executed.
  *
  * You must not call this function with disabled interrupts or from a
  * hardware interrupt handler or from a bottom half handler.
@@ -602,8 +602,9 @@ int smp_call_function(void (*func) (void
 }
 EXPORT_SYMBOL(smp_call_function);
 
-/*
+/**
  * smp_call_function_single - Run a function on another CPU
+ * @cpu: The target (destination) CPU number.
  * @func: The function to run. This must be fast and non-blocking.
  * @info: An arbitrary pointer to pass to the function.
  * @nonatomic: Currently unused.
@@ -611,7 +612,7 @@ EXPORT_SYMBOL(smp_call_function);
  *
  * Retrurns 0 on success, else a negative status code.
  *
- * Does not return until the remote CPU is nearly ready to execute <func>
+ * Does not return until the remote CPU is nearly ready to execute func()
  * or is or has executed.
  */
 int smp_call_function_single(int cpu, void (*func) (void *info), void *info,
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
 
 |   
 
| <Prev in Thread] | 
Current Thread | 
[Next in Thread>
 |  
- [Xen-devel] [patch 00/34] Xen-pv_ops: Xen guest implementation for	paravirt_ops interface, Jeremy Fitzhardinge
- [Xen-devel] [patch 04/34] Xen-pv_ops: use paravirt_nop to	consistently mark no-op operations, Jeremy Fitzhardinge
 
- [Xen-devel] [patch 03/34] Xen-pv_ops: update MAINTAINERS, Jeremy Fitzhardinge
 
- [Xen-devel] [patch 01/34] Xen-pv_ops: Fix typo in	sync_constant_test_bit()s name., Jeremy Fitzhardinge
 
- [Xen-devel] [patch 02/34] Xen-pv_ops: ignore vgacon if hardware not	present, Jeremy Fitzhardinge
 
- [Xen-devel] [patch 05/34] Xen-pv_ops: Add pagetable accessors to	pack and unpack pagetable entries, Jeremy Fitzhardinge
 
- [Xen-devel] [patch 10/34] Xen-pv_ops: Simplify smp_call_function*()	by using common implementation, Jeremy Fitzhardinge
- [Xen-devel] Re: [patch 10/34] Xen-pv_ops: Simplify smp_call_function*() by using common implementation,
Randy Dunlap <=
 
 
 
- [Xen-devel] [patch 08/34] Xen-pv_ops: Allow paravirt backend to	choose kernel PMD sharing, Jeremy Fitzhardinge
 
- [Xen-devel] [patch 09/34] Xen-pv_ops: add hooks to intercept mm	creation and destruction, Jeremy Fitzhardinge
 
- [Xen-devel] [patch 06/34] Xen-pv_ops: Hooks to set up initial	pagetable, Jeremy Fitzhardinge
 
- [Xen-devel] [patch 07/34] Xen-pv_ops: Allocate a fixmap slot, Jeremy Fitzhardinge
 
- [Xen-devel] [patch 11/34] Xen-pv_ops: Add smp_ops interface, Jeremy Fitzhardinge
 
- [Xen-devel] [patch 14/34] Xen-pv_ops: Fix patch site clobbers to	include return register, Jeremy Fitzhardinge
 
- [Xen-devel] [patch 12/34] Xen-pv_ops: rename struct paravirt_patch	to paravirt_patch_site for clarity, Jeremy Fitzhardinge
 
- [Xen-devel] [patch 13/34] Xen-pv_ops: Use patch site IDs computed	from offset in paravirt_ops structure, Jeremy Fitzhardinge
 
- [Xen-devel] [patch 16/34] Xen-pv_ops: add common patching machinery, Jeremy Fitzhardinge
 
- [Xen-devel] [patch 17/34] Xen-pv_ops: add flush_tlb_others	paravirt_op, Jeremy Fitzhardinge
 
 
 
 
 |  
  
 | 
    |