Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 77222
b: refs/heads/master
c: dab5209
h: refs/heads/master
v: v3
  • Loading branch information
Carsten Otte authored and Martin Schwidefsky committed Jan 26, 2008
1 parent aa4a181 commit c36e1e3
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7dc1da9ffae5a344f7115d019e2be069d3e1bb8d
refs/heads/master: dab5209cd878c146d9f6923f061d1c2725ff210f
27 changes: 27 additions & 0 deletions trunk/arch/s390/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,33 @@ int smp_call_function_single(int cpu, void (*func) (void *info), void *info,
}
EXPORT_SYMBOL(smp_call_function_single);

/**
* 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.
*
* If @wait is true, then returns once @func has returned; otherwise
* it returns just before the target cpu calls @func.
*
* You must not call this function with disabled interrupts or from a
* hardware interrupt handler or from a bottom half handler.
*/
int
smp_call_function_mask(cpumask_t mask,
void (*func)(void *), void *info,
int wait)
{
preempt_disable();
__smp_call_function_map(func, info, 0, wait, mask);
preempt_enable();
return 0;
}
EXPORT_SYMBOL(smp_call_function_mask);

void smp_send_stop(void)
{
int cpu, rc;
Expand Down
2 changes: 2 additions & 0 deletions trunk/include/asm-s390/smp.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ extern void __cpu_die (unsigned int cpu);
extern void cpu_die (void) __attribute__ ((noreturn));
extern int __cpu_up (unsigned int cpu);

extern int smp_call_function_mask(cpumask_t mask, void (*func)(void *),
void *info, int wait);
#endif

#ifndef CONFIG_SMP
Expand Down

0 comments on commit c36e1e3

Please sign in to comment.