[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v1 1/2] xen/arm: Add return value to smp_call_function_interrupt function
On Mon, 27 Jan 2014, Oleksandr Tyshchenko wrote: > Let the function returns error if the action can not be executed. Unless you make the calling function (do_sgi) check for the return value, this patch won't change anything. > Change-Id: Iace691850024656239326bf0e3c87b57cb1b8ab3 > Signed-off-by: Oleksandr Tyshchenko <oleksandr.tyshchenko@xxxxxxxxxxxxxxx> > Signed-off-by: Andrii Tseglytskyi <andrii.tseglytskyi@xxxxxxxxxxxxxxx> > --- > xen/common/smp.c | 7 +++++-- > xen/include/xen/smp.h | 2 +- > 2 files changed, 6 insertions(+), 3 deletions(-) > > diff --git a/xen/common/smp.c b/xen/common/smp.c > index 482a203..2700bd7 100644 > --- a/xen/common/smp.c > +++ b/xen/common/smp.c > @@ -20,6 +20,7 @@ > #include <asm/processor.h> > #include <xen/spinlock.h> > #include <xen/smp.h> > +#include <xen/errno.h> > > /* > * Structure and data for smp_call_function()/on_selected_cpus(). > @@ -75,14 +76,14 @@ out: > spin_unlock(&call_lock); > } > > -void smp_call_function_interrupt(void) > +int smp_call_function_interrupt(void) > { > void (*func)(void *info) = call_data.func; > void *info = call_data.info; > unsigned int cpu = smp_processor_id(); > > if ( !cpumask_test_cpu(cpu, &call_data.selected) ) > - return; > + return -EPERM; > > irq_enter(); > > @@ -100,6 +101,8 @@ void smp_call_function_interrupt(void) > } > > irq_exit(); > + > + return 0; > } > > /* > diff --git a/xen/include/xen/smp.h b/xen/include/xen/smp.h > index 6febb56..6d05910 100644 > --- a/xen/include/xen/smp.h > +++ b/xen/include/xen/smp.h > @@ -61,7 +61,7 @@ static inline void on_each_cpu( > /* > * Call a function on the current CPU > */ > -void smp_call_function_interrupt(void); > +int smp_call_function_interrupt(void); > > void smp_send_call_function_mask(const cpumask_t *mask); > > -- > 1.7.9.5 > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@xxxxxxxxxxxxx > http://lists.xen.org/xen-devel > _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |