linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] 2.5.70 remove smp_send_reschedule() cruft
@ 2003-06-03 23:18 John Hawkes
  2003-06-04  0:11 ` Linus Torvalds
  0 siblings, 1 reply; 2+ messages in thread
From: John Hawkes @ 2003-06-03 23:18 UTC (permalink / raw)
  To: linux-kernel, akpm, torvalds

smp_send_reschedule_all() is unused in 2.5 and can be eliminated.
Here is a patch against 2.5.70:

-- 
John Hawkes


diff -Naur linux-2.5.70/arch/i386/kernel/smp.c linux-2.5.70-sendall/arch/i386/kernel/smp.c
--- linux-2.5.70/arch/i386/kernel/smp.c Mon May 26 18:00:22 2003
+++ linux-2.5.70-sendall/arch/i386/kernel/smp.c Tue Jun  3 16:01:36 2003
@@ -461,17 +461,6 @@
 }
 
 /*
- * 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 -Naur linux-2.5.70/arch/ia64/kernel/smp.c linux-2.5.70-sendall/arch/ia64/kernel/smp.c
--- linux-2.5.70/arch/ia64/kernel/smp.c Mon May 26 18:01:00 2003
+++ linux-2.5.70-sendall/arch/ia64/kernel/smp.c Tue Jun  3 15:59:20 2003
@@ -205,24 +205,6 @@
        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 -Naur linux-2.5.70/arch/ppc64/kernel/smp.c linux-2.5.70-sendall/arch/ppc64/kernel/smp.c
--- linux-2.5.70/arch/ppc64/kernel/smp.c        Mon May 26 18:00:45 2003
+++ linux-2.5.70-sendall/arch/ppc64/kernel/smp.c        Tue Jun  3 16:02:07 2003
@@ -392,17 +392,6 @@
        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 -Naur linux-2.5.70/include/asm-i386/smp.h linux-2.5.70-sendall/include/asm-i386/smp.h
--- linux-2.5.70/include/asm-i386/smp.h Mon May 26 18:00:41 2003
+++ linux-2.5.70-sendall/include/asm-i386/smp.h Tue Jun  3 16:01:00 2003
@@ -41,7 +41,6 @@
 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 -Naur linux-2.5.70/include/asm-ia64/smp.h linux-2.5.70-sendall/include/asm-ia64/smp.h
--- linux-2.5.70/include/asm-ia64/smp.h Mon May 26 18:00:40 2003
+++ linux-2.5.70-sendall/include/asm-ia64/smp.h Tue Jun  3 16:00:15 2003
@@ -136,8 +136,6 @@
 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 -Naur linux-2.5.70/include/asm-ppc64/smp.h linux-2.5.70-sendall/include/asm-ppc64/smp.h
--- linux-2.5.70/include/asm-ppc64/smp.h        Mon May 26 18:00:19 2003
+++ linux-2.5.70-sendall/include/asm-ppc64/smp.h        Tue Jun  3 16:00:07 2003
@@ -34,7 +34,6 @@
 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 -Naur linux-2.5.70/include/asm-x86_64/smp.h linux-2.5.70-sendall/include/asm-x86_64/smp.h
--- linux-2.5.70/include/asm-x86_64/smp.h       Mon May 26 18:00:20 2003
+++ linux-2.5.70-sendall/include/asm-x86_64/smp.h       Tue Jun  3 16:00:01 2003
@@ -42,7 +42,6 @@
 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 -Naur linux-2.5.70/include/linux/smp.h linux-2.5.70-sendall/include/linux/smp.h
--- linux-2.5.70/include/linux/smp.h    Mon May 26 18:00:40 2003
+++ linux-2.5.70-sendall/include/linux/smp.h    Tue Jun  3 16:00:47 2003
@@ -110,7 +110,6 @@
 #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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] 2.5.70 remove smp_send_reschedule() cruft
  2003-06-03 23:18 [PATCH] 2.5.70 remove smp_send_reschedule() cruft John Hawkes
@ 2003-06-04  0:11 ` Linus Torvalds
  0 siblings, 0 replies; 2+ messages in thread
From: Linus Torvalds @ 2003-06-04  0:11 UTC (permalink / raw)
  To: John Hawkes; +Cc: linux-kernel, akpm


On Tue, 3 Jun 2003, John Hawkes wrote:
>
> Here is a patch against 2.5.70:

Total whitespace damage.

		Linus


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-06-03 23:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-03 23:18 [PATCH] 2.5.70 remove smp_send_reschedule() cruft John Hawkes
2003-06-04  0:11 ` Linus Torvalds

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).