From 05742d9d690767e9f1244c8468aef85b278a7d3b Mon Sep 17 00:00:00 2001 From: Bartlomiej Zolnierkiewicz Date: Tue, 3 Jun 2003 03:10:32 -0700 Subject: [PATCH] kill recreate_proc_ide_device() It is unused and not needed --- include/linux/ide.h | 1 - 1 file changed, 1 deletion(-) (limited to 'include/linux') diff --git a/include/linux/ide.h b/include/linux/ide.h index 706819e9a27c..c6a8f20203ec 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h @@ -1115,7 +1115,6 @@ typedef struct { #ifdef CONFIG_PROC_FS extern void proc_ide_create(void); extern void proc_ide_destroy(void); -extern void recreate_proc_ide_device(ide_hwif_t *, ide_drive_t *); extern void destroy_proc_ide_device(ide_hwif_t *, ide_drive_t *); extern void destroy_proc_ide_drives(ide_hwif_t *); extern void create_proc_ide_interfaces(void); -- cgit v1.2.3 From ec55bbd7c0e9dc145e9216bd90634fe33c31acfa Mon Sep 17 00:00:00 2001 From: John Hawkes Date: Tue, 3 Jun 2003 03:16:47 -0700 Subject: [PATCH] 2.5.70 remove smp_send_reschedule() cruft smp_send_reschedule_all() is unused in 2.5 and can be eliminated. --- arch/i386/kernel/smp.c | 11 ----------- arch/ia64/kernel/smp.c | 18 ------------------ arch/ppc64/kernel/smp.c | 11 ----------- include/asm-i386/smp.h | 1 - include/asm-ia64/smp.h | 2 -- include/asm-ppc64/smp.h | 1 - include/asm-x86_64/smp.h | 1 - include/linux/smp.h | 1 - 8 files changed, 46 deletions(-) (limited to 'include/linux') 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 @@ -460,17 +460,6 @@ void smp_send_reschedule(int cpu) send_IPI_mask(1 << cpu, RESCHEDULE_VECTOR); } -/* - * 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 -- cgit v1.2.3