# \[PATCH\]\[PPC32\] Remove \_\_setup\_cpu\_8xx

- From: Kumar Gala \<hidden\>
- Date: 2004-11-11 04:15:57 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2004/11/686591
- Thread: https://ratatoskr.run/lkml/2004/11/686591/t.md

```text
Andrew,

Remove __setup_cpu_8xx and its initialization in cpu_specs table since it 
hasn't every done anything.  This is at Tom Rini's suggestion.

Signed-off-by: Kumar Gala <redacted> 

--

diff -Nru a/arch/ppc/kernel/cputable.c b/arch/ppc/kernel/cputable.c
--- a/arch/ppc/kernel/cputable.c	2004-11-10 17:12:09 -06:00
+++ b/arch/ppc/kernel/cputable.c	2004-11-10 17:12:09 -06:00
@@ -30,7 +30,6 @@
 extern void __setup_cpu_power3(unsigned long offset, int cpu_nr, struct cpu_spec* spec);
 extern void __setup_cpu_power4(unsigned long offset, int cpu_nr, struct cpu_spec* spec);
 extern void __setup_cpu_ppc970(unsigned long offset, int cpu_nr, struct cpu_spec* spec);
-extern void __setup_cpu_8xx(unsigned long offset, int cpu_nr, struct cpu_spec* spec);
 extern void __setup_cpu_generic(unsigned long offset, int cpu_nr, struct cpu_spec* spec);
 
 #define CLASSIC_PPC (!defined(CONFIG_8xx) && !defined(CONFIG_4xx) && \
@@ -693,7 +692,6 @@
 		.icache_bsize		= 16,
 		.dcache_bsize		= 16,
 		.num_pmcs		= 0,
-		.cpu_setup		= __setup_cpu_8xx	/* Empty */
 	},
 #endif /* CONFIG_8xx */
 #ifdef CONFIG_40x
diff -Nru a/arch/ppc/kernel/head_8xx.S b/arch/ppc/kernel/head_8xx.S
--- a/arch/ppc/kernel/head_8xx.S	2004-11-10 17:12:09 -06:00
+++ b/arch/ppc/kernel/head_8xx.S	2004-11-10 17:12:09 -06:00
@@ -638,11 +638,6 @@
 giveup_fpu:
 	blr
 
-/* Maybe someday.......
-*/
-_GLOBAL(__setup_cpu_8xx)
-	blr
-
 /*
  * This is where the main kernel code starts.
  */
```
