Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 166615
b: refs/heads/master
c: eef34ec
h: refs/heads/master
i:
  166613: fbb3b08
  166611: fd7ebfc
  166607: c8547ff
v: v3
  • Loading branch information
Ralf Baechle committed Sep 30, 2009
1 parent 5777574 commit d66333c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 16 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: b533e652df3bbb8f0ea63dc22054edf4cd4155df
refs/heads/master: eef34ec514054e4685745236dd5c9658f7aca69e
15 changes: 13 additions & 2 deletions trunk/arch/mips/include/asm/smp.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,18 @@ extern void play_dead(void);

extern asmlinkage void smp_call_function_interrupt(void);

extern void arch_send_call_function_single_ipi(int cpu);
extern void arch_send_call_function_ipi_mask(const struct cpumask *mask);
static inline void arch_send_call_function_single_ipi(int cpu)
{
extern struct plat_smp_ops *mp_ops; /* private */

mp_ops->send_ipi_mask(&cpumask_of_cpu(cpu), SMP_CALL_FUNCTION);
}

static inline void arch_send_call_function_ipi_mask(const struct cpumask *mask)
{
extern struct plat_smp_ops *mp_ops; /* private */

mp_ops->send_ipi_mask(mask, SMP_CALL_FUNCTION);
}

#endif /* __ASM_SMP_H */
13 changes: 0 additions & 13 deletions trunk/arch/mips/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,19 +127,6 @@ asmlinkage __cpuinit void start_secondary(void)
cpu_idle();
}

void arch_send_call_function_ipi_mask(const struct cpumask *mask)
{
mp_ops->send_ipi_mask(mask, SMP_CALL_FUNCTION);
}

/*
* We reuse the same vector for the single IPI
*/
void arch_send_call_function_single_ipi(int cpu)
{
mp_ops->send_ipi_mask(&cpumask_of_cpu(cpu), SMP_CALL_FUNCTION);
}

/*
* Call into both interrupt handlers, as we share the IPI for them
*/
Expand Down

0 comments on commit d66333c

Please sign in to comment.