Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 62594
b: refs/heads/master
c: adff093
h: refs/heads/master
v: v3
  • Loading branch information
Avi Kivity authored and Paul Mackerras committed Jul 22, 2007
1 parent 6dbf809 commit cb718c0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: 08ae6cc15db201fa20cc4893d9500c1f6b20e560
refs/heads/master: adff093d6c545c882f1503607f6af14ddd90bb89
7 changes: 6 additions & 1 deletion trunk/arch/powerpc/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,14 +284,19 @@ int smp_call_function_single(int cpu, void (*func) (void *info), void *info, int
int wait)
{
cpumask_t map = CPU_MASK_NONE;
int ret = -EBUSY;
int ret = 0;

if (!cpu_online(cpu))
return -EINVAL;

cpu_set(cpu, map);
if (cpu != get_cpu())
ret = smp_call_function_map(func,info,nonatomic,wait,map);
else {
local_irq_disable();
func(info);
local_irq_enable();
}
put_cpu();
return ret;
}
Expand Down

0 comments on commit cb718c0

Please sign in to comment.