Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63556
b: refs/heads/master
c: 8a2d869
h: refs/heads/master
v: v3
  • Loading branch information
Avi Kivity authored and Tony Luck committed Jul 30, 2007
1 parent 68073e8 commit fc664b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: 056e6d89aab51babaa5f75c16832b19c55a68bc4
refs/heads/master: 8a2d8693054a6cd86cc959576322b30e66e31208
8 changes: 5 additions & 3 deletions trunk/arch/ia64/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ smp_flush_tlb_mm (struct mm_struct *mm)
}

/*
* Run a function on another CPU
* Run a function on a specific CPU
* <func> The function to run. This must be fast and non-blocking.
* <info> An arbitrary pointer to pass to the function.
* <nonatomic> Currently unused.
Expand All @@ -366,9 +366,11 @@ smp_call_function_single (int cpuid, void (*func) (void *info), void *info, int
int me = get_cpu(); /* prevent preemption and reschedule on another processor */

if (cpuid == me) {
printk(KERN_INFO "%s: trying to call self\n", __FUNCTION__);
local_irq_disable();
func(info);
local_irq_enable();
put_cpu();
return -EBUSY;
return 0;
}

data.func = func;
Expand Down

0 comments on commit fc664b8

Please sign in to comment.