sparc: remove unused prom stuff
cover sparc: remove unused prom stuff
There was a few patches recently that touched arch/sparc/prom/* This triggered me to look up why sparc and sparc64 differed so much in their low-level prom functions.
And it was obvious that the older sparcs implementes the ROMVEC interface (I never found a spec for this). Where newer sparcs implements IEEE 1275.
While looking through the code I noticed that several functions/files was unused.
I used "git grep" in the kernel tree to check - and I have sucessfully build a sparc kernel with the patches applied.
Note: focus on sparc (not sparc64) as this is what I have running now.
Patches are on top of sparc-next-2.6.git
Sam
Sam Ravnborg (4):
sparc: drop prom/devmap.c
sparc: drop prom/palloc.c
sparc: remove unused prom cpu functions
sparc: remove unused prom tree functions
arch/sparc/include/asm/oplib_32.h | 42 -------------------- arch/sparc/prom/Makefile | 2 - arch/sparc/prom/devmap.c | 53 ------------------------- arch/sparc/prom/mp.c | 78 ------------------------------------- arch/sparc/prom/palloc.c | 43 -------------------- arch/sparc/prom/tree_32.c | 44 +------------------- 6 files changed, 3 insertions(+), 259 deletions(-)
Quoted 7 lines · Sam Ravnborg
There was a few patches recently that touched
arch/sparc/prom/*This triggered me to look up why sparc and sparc64 differed so much in their low-level prom functions.And it was obvious that the older sparcs implementes the ROMVEC interface (I never found a spec for this). Where newer sparcs implements IEEE 1275.
I had vague plans to split this out into some form of ops structure, but they never got off the ground - and it probably would have been another layer of indirection that relatively slow sparcs might notice. Though it'd give us a chance for proper openprom support for SUN3(X) on m68k.
Quoted 5 lines
While looking through the code I noticed that several functions/files was unused.
I used "git grep" in the kernel tree to check - and I have sucessfully build a sparc kernel with the patches applied.
Looks good, for what it's worth.
Thanks,
Signature · 5 lines
Julian Calaby Email: [email protected] Profile: http://www.google.com/profiles/julian.calaby/ .Plan: http://sites.google.com/site/juliancalaby/
From: Sam Ravnborg <[email protected]>
Date: Sat, 1 Jan 2011 23:50:07 +0100
Quoted 5 lines
Sam Ravnborg (4):
sparc: dropprom/devmap.c
sparc: dropprom/palloc.c
sparc: remove unused prom cpu functions
sparc: remove unused prom tree functions
Looks good, all applied, thanks Sam!