Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1718435 > unrolled thread
| Started by | Christophe Leroy <christophe.leroy@c-s.fr> |
|---|---|
| First post | 2017-08-23 17:00 +0200 |
| Last post | 2017-08-23 17:00 +0200 |
| Articles | 2 — 1 participant |
Back to article view | Back to linux.kernel
[PATCH 0/4] powerpc/32: memset() optimisations Christophe Leroy <christophe.leroy@c-s.fr> - 2017-08-23 17:00 +0200
[PATCH 2/4] powerpc: fix location of two EXPORT_SYMBOL Christophe Leroy <christophe.leroy@c-s.fr> - 2017-08-23 17:00 +0200
| From | Christophe Leroy <christophe.leroy@c-s.fr> |
|---|---|
| Date | 2017-08-23 17:00 +0200 |
| Subject | [PATCH 0/4] powerpc/32: memset() optimisations |
| Message-ID | <uhFip-1PN-3@gated-at.bofh.it> |
This serie provide small optimisation of memset() for PPC32. Christophe Leroy (4): powerpc/32: add memset16() powerpc: fix location of two EXPORT_SYMBOL powerpc/32: optimise memset() powerpc/32: remove a NOP from memset() arch/powerpc/include/asm/string.h | 4 +++- arch/powerpc/kernel/setup_32.c | 7 ++++++- arch/powerpc/lib/copy_32.S | 44 ++++++++++++++++++++++++++++++--------- arch/powerpc/mm/hash_low_32.S | 2 +- 4 files changed, 44 insertions(+), 13 deletions(-) -- 2.13.3
[toc] | [next] | [standalone]
| From | Christophe Leroy <christophe.leroy@c-s.fr> |
|---|---|
| Date | 2017-08-23 17:00 +0200 |
| Subject | [PATCH 2/4] powerpc: fix location of two EXPORT_SYMBOL |
| Message-ID | <uhFiq-1PN-19@gated-at.bofh.it> |
| In reply to | #1718435 |
Commit 9445aa1a3062a ("ppc: move exports to definitions")
added EXPORT_SYMBOL() for memset() and flush_hash_pages() in
the middle of the functions.
This patch moves them at the end of the two functions.
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
---
arch/powerpc/lib/copy_32.S | 2 +-
arch/powerpc/mm/hash_low_32.S | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/powerpc/lib/copy_32.S b/arch/powerpc/lib/copy_32.S
index a14d4df2ebc9..a3ffeac69eca 100644
--- a/arch/powerpc/lib/copy_32.S
+++ b/arch/powerpc/lib/copy_32.S
@@ -104,7 +104,6 @@ _GLOBAL(memset)
subf r6,r0,r6
cmplwi 0,r4,0
bne 2f /* Use normal procedure if r4 is not zero */
-EXPORT_SYMBOL(memset)
_GLOBAL(memset_nocache_branch)
b 2f /* Skip optimised bloc until cache is enabled */
@@ -140,6 +139,7 @@ _GLOBAL(memset_nocache_branch)
8: stbu r4,1(r6)
bdnz 8b
blr
+EXPORT_SYMBOL(memset)
/*
* This version uses dcbz on the complete cache lines in the
diff --git a/arch/powerpc/mm/hash_low_32.S b/arch/powerpc/mm/hash_low_32.S
index 6f962e5cb5e1..ffbd7c0bda96 100644
--- a/arch/powerpc/mm/hash_low_32.S
+++ b/arch/powerpc/mm/hash_low_32.S
@@ -575,7 +575,6 @@ _GLOBAL(flush_hash_pages)
rlwinm r8,r8,0,31,29 /* clear HASHPTE bit */
stwcx. r8,0,r5 /* update the pte */
bne- 33b
-EXPORT_SYMBOL(flush_hash_pages)
/* Get the address of the primary PTE group in the hash table (r3) */
_GLOBAL(flush_hash_patch_A)
@@ -634,6 +633,7 @@ _GLOBAL(flush_hash_patch_B)
SYNC_601
isync
blr
+EXPORT_SYMBOL(flush_hash_pages)
/*
* Flush an entry from the TLB
--
2.13.3
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web