Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 376435
b: refs/heads/master
c: 1db01b4
h: refs/heads/master
i:
  376433: 5ebe657
  376431: fbbdc4b
v: v3
  • Loading branch information
Stefan Bader authored and Konrad Rzeszutek Wilk committed May 29, 2013
1 parent 03956f6 commit 95bf343
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 33c1174bae3ea8f420abce53cf8aded778987583
refs/heads/master: 1db01b4903639fcfaec213701a494fe3fb2c490b
10 changes: 4 additions & 6 deletions trunk/arch/x86/xen/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -576,24 +576,22 @@ void xen_send_IPI_mask_allbutself(const struct cpumask *mask,
{
unsigned cpu;
unsigned int this_cpu = smp_processor_id();
int xen_vector = xen_map_vector(vector);

if (!(num_online_cpus() > 1))
if (!(num_online_cpus() > 1) || (xen_vector < 0))
return;

for_each_cpu_and(cpu, mask, cpu_online_mask) {
if (this_cpu == cpu)
continue;

xen_smp_send_call_function_single_ipi(cpu);
xen_send_IPI_one(cpu, xen_vector);
}
}

void xen_send_IPI_allbutself(int vector)
{
int xen_vector = xen_map_vector(vector);

if (xen_vector >= 0)
xen_send_IPI_mask_allbutself(cpu_online_mask, xen_vector);
xen_send_IPI_mask_allbutself(cpu_online_mask, vector);
}

static irqreturn_t xen_call_function_interrupt(int irq, void *dev_id)
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/x86/xen/smp.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ extern void xen_send_IPI_mask(const struct cpumask *mask,
extern void xen_send_IPI_mask_allbutself(const struct cpumask *mask,
int vector);
extern void xen_send_IPI_allbutself(int vector);
extern void physflat_send_IPI_allbutself(int vector);
extern void xen_send_IPI_all(int vector);
extern void xen_send_IPI_self(int vector);

Expand Down

0 comments on commit 95bf343

Please sign in to comment.