Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 88702
b: refs/heads/master
c: 8678969
h: refs/heads/master
v: v3
  • Loading branch information
Glauber Costa authored and Ingo Molnar committed Apr 17, 2008
1 parent 040624f commit 9794cb1
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 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: c76cb36846da6d5d6fb2951968869faa4fd1001d
refs/heads/master: 8678969e60d80527d96d2af0011e72c87c9c1fe5
7 changes: 5 additions & 2 deletions trunk/arch/x86/kernel/smp_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,9 @@ void flush_tlb_all(void)
* anything. Worst case is that we lose a reschedule ...
*/

void smp_send_reschedule(int cpu)
static void native_smp_send_reschedule(int cpu)
{
WARN_ON(cpu_is_offline(cpu));
send_IPI_mask(cpumask_of_cpu(cpu), RESCHEDULE_VECTOR);
}

Expand Down Expand Up @@ -528,5 +529,7 @@ asmlinkage void smp_call_function_interrupt(void)
}
}

struct smp_ops smp_ops;
struct smp_ops smp_ops = {
.smp_send_reschedule = native_smp_send_reschedule,
};
EXPORT_SYMBOL_GPL(smp_ops);
5 changes: 5 additions & 0 deletions trunk/include/asm-x86/smp.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ struct smp_ops {

#ifdef CONFIG_SMP
extern struct smp_ops smp_ops;

static inline void smp_send_reschedule(int cpu)
{
smp_ops.smp_send_reschedule(cpu);
}
#endif

#ifdef CONFIG_X86_32
Expand Down
4 changes: 0 additions & 4 deletions trunk/include/asm-x86/smp_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,6 @@ static inline void smp_send_stop(void)
{
smp_ops.smp_send_stop();
}
static inline void smp_send_reschedule(int cpu)
{
smp_ops.smp_send_reschedule(cpu);
}
static inline int smp_call_function_mask(cpumask_t mask,
void (*func) (void *info), void *info,
int wait)
Expand Down
2 changes: 0 additions & 2 deletions trunk/include/asm-x86/smp_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ static inline int num_booting_cpus(void)
return cpus_weight(cpu_callout_map);
}

extern void smp_send_reschedule(int cpu);

#else /* CONFIG_SMP */

extern unsigned int boot_cpu_id;
Expand Down

0 comments on commit 9794cb1

Please sign in to comment.