summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Hawkes <hawkes@oss.sgi.com>2003-06-03 03:16:47 -0700
committerJames Bottomley <jejb@raven.il.steeleye.com>2003-06-03 03:16:47 -0700
commitec55bbd7c0e9dc145e9216bd90634fe33c31acfa (patch)
tree2bf87d66a1273acf9fa90e45e79e9257cc2c2872
parent05742d9d690767e9f1244c8468aef85b278a7d3b (diff)
[PATCH] 2.5.70 remove smp_send_reschedule() cruft
smp_send_reschedule_all() is unused in 2.5 and can be eliminated.
-rw-r--r--arch/i386/kernel/smp.c11
-rw-r--r--arch/ia64/kernel/smp.c18
-rw-r--r--arch/ppc64/kernel/smp.c11
-rw-r--r--include/asm-i386/smp.h1
-rw-r--r--include/asm-ia64/smp.h2
-rw-r--r--include/asm-ppc64/smp.h1
-rw-r--r--include/asm-x86_64/smp.h1
-rw-r--r--include/linux/smp.h1
8 files changed, 0 insertions, 46 deletions
diff --git a/arch/i386/kernel/smp.c b/arch/i386/kernel/smp.c
index 335a0404ee3c..1e2e7405a6d6 100644
--- a/arch/i386/kernel/smp.c
+++ b/arch/i386/kernel/smp.c
@@ -461,17 +461,6 @@ void smp_send_reschedule(int cpu)
}
/*
- * this function sends a reschedule IPI to all (other) CPUs.
- * This should only be used if some 'global' task became runnable,
- * such as a RT task, that must be handled now. The first CPU
- * that manages to grab the task will run it.
- */
-void smp_send_reschedule_all(void)
-{
- send_IPI_allbutself(RESCHEDULE_VECTOR);
-}
-
-/*
* Structure and data for smp_call_function(). This is designed to minimise
* static memory requirements. It also looks cleaner.
*/
diff --git a/arch/ia64/kernel/smp.c b/arch/ia64/kernel/smp.c
index 7d192940fbd8..9727272ffb85 100644
--- a/arch/ia64/kernel/smp.c
+++ b/arch/ia64/kernel/smp.c
@@ -205,24 +205,6 @@ smp_send_reschedule (int cpu)
platform_send_ipi(cpu, IA64_IPI_RESCHEDULE, IA64_IPI_DM_INT, 0);
}
-/*
- * This function sends a reschedule IPI to all (other) CPUs. This should only be used if
- * some 'global' task became runnable, such as a RT task, that must be handled now. The
- * first CPU that manages to grab the task will run it.
- */
-void
-smp_send_reschedule_all (void)
-{
- int i;
- int cpu = get_cpu(); /* disable preemption */
-
- for (i = 0; i < NR_CPUS; i++)
- if (cpu_online(i) && i != cpu)
- smp_send_reschedule(i);
- put_cpu();
-}
-
-
void
smp_flush_tlb_all (void)
{
diff --git a/arch/ppc64/kernel/smp.c b/arch/ppc64/kernel/smp.c
index 0730f32b6d8e..9a1414445643 100644
--- a/arch/ppc64/kernel/smp.c
+++ b/arch/ppc64/kernel/smp.c
@@ -392,17 +392,6 @@ void smp_send_reschedule(int cpu)
smp_message_pass(cpu, PPC_MSG_RESCHEDULE, 0, 0);
}
-/*
- * this function sends a reschedule IPI to all (other) CPUs.
- * This should only be used if some 'global' task became runnable,
- * such as a RT task, that must be handled now. The first CPU
- * that manages to grab the task will run it.
- */
-void smp_send_reschedule_all(void)
-{
- smp_message_pass(MSG_ALL_BUT_SELF, PPC_MSG_RESCHEDULE, 0, 0);
-}
-
#ifdef CONFIG_XMON
void smp_send_xmon_break(int cpu)
{
diff --git a/include/asm-i386/smp.h b/include/asm-i386/smp.h
index f72e82945a57..71dd76aa0d83 100644
--- a/include/asm-i386/smp.h
+++ b/include/asm-i386/smp.h
@@ -41,7 +41,6 @@ extern int cpu_sibling_map[];
extern void smp_flush_tlb(void);
extern void smp_message_irq(int cpl, void *dev_id, struct pt_regs *regs);
extern void smp_send_reschedule(int cpu);
-extern void smp_send_reschedule_all(void);
extern void smp_invalidate_rcv(void); /* Process an NMI */
extern void (*mtrr_hook) (void);
extern void zap_low_mappings (void);
diff --git a/include/asm-ia64/smp.h b/include/asm-ia64/smp.h
index 5147ca20d3ac..df4b07cf7f46 100644
--- a/include/asm-ia64/smp.h
+++ b/include/asm-ia64/smp.h
@@ -136,8 +136,6 @@ extern void smp_do_timer (struct pt_regs *regs);
extern int smp_call_function_single (int cpuid, void (*func) (void *info), void *info,
int retry, int wait);
extern void smp_send_reschedule (int cpu);
-extern void smp_send_reschedule_all (void);
-
#endif /* CONFIG_SMP */
#endif /* _ASM_IA64_SMP_H */
diff --git a/include/asm-ppc64/smp.h b/include/asm-ppc64/smp.h
index 0dd474425342..f3cfd38ff0a2 100644
--- a/include/asm-ppc64/smp.h
+++ b/include/asm-ppc64/smp.h
@@ -34,7 +34,6 @@ extern void smp_send_tlb_invalidate(int);
extern void smp_send_xmon_break(int cpu);
struct pt_regs;
extern void smp_message_recv(int, struct pt_regs *);
-extern void smp_send_reschedule_all(void);
#define NO_PROC_ID 0xFF /* No processor magic marker */
diff --git a/include/asm-x86_64/smp.h b/include/asm-x86_64/smp.h
index 53ee2b8a8716..a624ef178425 100644
--- a/include/asm-x86_64/smp.h
+++ b/include/asm-x86_64/smp.h
@@ -42,7 +42,6 @@ extern int pic_mode;
extern void smp_flush_tlb(void);
extern void smp_message_irq(int cpl, void *dev_id, struct pt_regs *regs);
extern void smp_send_reschedule(int cpu);
-extern void smp_send_reschedule_all(void);
extern void smp_invalidate_rcv(void); /* Process an NMI */
extern void (*mtrr_hook) (void);
extern void zap_low_mappings(void);
diff --git a/include/linux/smp.h b/include/linux/smp.h
index 194d2f5ecb87..98f235eec967 100644
--- a/include/linux/smp.h
+++ b/include/linux/smp.h
@@ -110,7 +110,6 @@ void smp_prepare_boot_cpu(void);
#define smp_call_function(func,info,retry,wait) ({ 0; })
#define on_each_cpu(func,info,retry,wait) ({ func(info); 0; })
static inline void smp_send_reschedule(int cpu) { }
-static inline void smp_send_reschedule_all(void) { }
#define cpu_online_map 1
#define cpu_online(cpu) ({ BUG_ON((cpu) != 0); 1; })
#define num_online_cpus() 1