Skip to contentSkip to conversation

sparc32: removed unused code, implemented by generic code

PATCH In review Daniel Hellstrom 2 participants 3 messages Apr 21, 2011 – Apr 22, 2011 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sparc32: removed unused code, implemented by generic code

---
 arch/sparc/lib/Makefile   |    1 -
 arch/sparc/lib/rwsem_32.S |  224 ---------------------------------------------
 2 files changed, 0 insertions(+), 225 deletions(-)
 delete mode 100644 arch/sparc/lib/rwsem_32.S
arch/sparc/lib/Makefile +0 -1
index 846d1c4..7f01b8f 100644
@@ -15,7 +15,6 @@ lib-$(CONFIG_SPARC32) += divdi3.o udivdi3.o
 lib-$(CONFIG_SPARC32) += copy_user.o locks.o
 lib-y                 += atomic_$(BITS).o
 lib-$(CONFIG_SPARC32) += lshrdi3.o ashldi3.o
-lib-$(CONFIG_SPARC32) += rwsem_32.o
 lib-$(CONFIG_SPARC32) += muldi3.o bitext.o cmpdi2.o
 
 lib-$(CONFIG_SPARC64) += copy_page.o clear_page.o bzero.o
arch/sparc/lib/rwsem_32.S deleted +0 -224

224 lines not on this page · raw message

Signature · 1 line
1.5.4
maintainer
#1 lore raw

Re: [PATCH] sparc32: removed unused code, implemented by generic

From: Daniel Hellstrom <[email protected]>
Date: Thu, 21 Apr 2011 16:21:39 +0200

Quoted 1 line

I had to do the rwsem_32.S removal by hand because:

arch/sparc/lib/rwsem_32.S line 30

Quoted 7 lines
arch/sparc/lib/rwsem_32.S deleted +0 -7
-#ifdef CONFIG_SMP
-#if !(defined(CONFIG_SPARC_LEON) && defined(CONFIG_SMP))
-1:	ldstub		[%g1 + 4], %g7
-#else
-1:	set		4, %g7
-	ldstuba		[%g1 + %g7] 1, %g7  /* ASI_LEON23_DCACHE_MISS */
-#endif

these leon hacks are not in any of my trees.

But otherwise applied, thanks.

#2 lore raw

Re: [PATCH] sparc32: removed unused code, implemented by

In reply to Daniel Hellstrom

On Thu, 21 Apr 2011 16:47:01 -0700 (PDT), David Miller wrote:
From: Daniel Hellstrom <[email protected]>

Quoted 16 lines

Date: Thu, 21 Apr 2011 16:21:39 +0200

Quoted 1 line

I had to do the rwsem_32.S removal by hand because:

arch/sparc/lib/rwsem_32.S line 30

Quoted 7 lines
arch/sparc/lib/rwsem_32.S deleted +0 -7
-#ifdef CONFIG_SMP
-#if !(defined(CONFIG_SPARC_LEON) && defined(CONFIG_SMP))
-1: ldstub [%g1 + 4], %g7
-#else
-1: set 4, %g7
- ldstuba [%g1 + %g7] 1, %g7  /* ASI_LEON23_DCACHE_MISS */
-#endif

these leon hacks are not in any of my trees.

Quoted 1 line

But otherwise applied, thanks.

Yeah, these are ugly LEON hacks not part of the kernel.. Thanks for applying the patches.

Daniel