diff options
author | Robin Getz <robin.getz@analog.com> | 2010-05-03 13:23:20 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-05-22 14:19:09 -0400 |
commit | 479ba6035862a9c08ce4351c7fff8926fde4ede5 (patch) | |
tree | 93a6419ffdfd38056f26d4362de450f79af044b3 /arch/blackfin/Kconfig | |
parent | 80fcdb959343ab9e0ee95c11b5ea47c44a2c3004 (diff) |
Blackfin: move string functions to normal lib/ assembly
Since 'extern inline' doesn't work correctly in the context of the Linux
kernel (too many overriding defines), move the string functions to normal
lib/ assembly files (like the existing mem funcs). This avoids the forced
inline all over the kernel and allows us to place them constantly in L1.
This also avoids some module failures when gcc inserts calls to string
functions but the kernel build system doesn't fully consult the library
archives.
Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/Kconfig')
-rw-r--r-- | arch/blackfin/Kconfig | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/arch/blackfin/Kconfig b/arch/blackfin/Kconfig index 405bdaa17333..7b9fc9c9c0c2 100644 --- a/arch/blackfin/Kconfig +++ b/arch/blackfin/Kconfig | |||
@@ -791,6 +791,34 @@ config MEMCPY_L1 | |||
791 | If enabled, the memcpy function is linked | 791 | If enabled, the memcpy function is linked |
792 | into L1 instruction memory. (less latency) | 792 | into L1 instruction memory. (less latency) |
793 | 793 | ||
794 | config STRCMP_L1 | ||
795 | bool "locate strcmp function in L1 Memory" | ||
796 | default y | ||
797 | help | ||
798 | If enabled, the strcmp function is linked | ||
799 | into L1 instruction memory (less latency). | ||
800 | |||
801 | config STRNCMP_L1 | ||
802 | bool "locate strncmp function in L1 Memory" | ||
803 | default y | ||
804 | help | ||
805 | If enabled, the strncmp function is linked | ||
806 | into L1 instruction memory (less latency). | ||
807 | |||
808 | config STRCPY_L1 | ||
809 | bool "locate strcpy function in L1 Memory" | ||
810 | default y | ||
811 | help | ||
812 | If enabled, the strcpy function is linked | ||
813 | into L1 instruction memory (less latency). | ||
814 | |||
815 | config STRNCPY_L1 | ||
816 | bool "locate strncpy function in L1 Memory" | ||
817 | default y | ||
818 | help | ||
819 | If enabled, the strncpy function is linked | ||
820 | into L1 instruction memory (less latency). | ||
821 | |||
794 | config SYS_BFIN_SPINLOCK_L1 | 822 | config SYS_BFIN_SPINLOCK_L1 |
795 | bool "Locate sys_bfin_spinlock function in L1 Memory" | 823 | bool "Locate sys_bfin_spinlock function in L1 Memory" |
796 | default y | 824 | default y |