mirror of
https://github.com/torvalds/linux.git
synced 2024-11-08 21:21:47 +00:00
9f825962ef
This adds optimized memset/bzero/page-clear routines for Niagara-4. We basically can do what powerpc has been able to do for a decade (via the "dcbz" instruction), which is use cache line clearing stores for bzero and memsets with a 'c' argument of zero. As long as we make the cache initializing store to each 32-byte subblock of the L2 cache line, it works. As with other Niagara-4 optimized routines, the key is to make sure to avoid any usage of the %asi register, as reads and writes to it cost at least 50 cycles. For the user clear cases, we don't use these new routines, we use the Niagara-1 variants instead. Those have to use %asi in an unavoidable way. A Niagara-4 8K page clear costs just under 600 cycles. Add definitions of the MRU variants of the cache initializing store ASIs. By default, cache initializing stores install the line as Least Recently Used. If we know we're going to use the data immediately (which is true for page copies and clears) we can use the Most Recently Used variant, to decrease the likelyhood of the lines being evicted before they get used. Signed-off-by: David S. Miller <davem@davemloft.net>
49 lines
1.8 KiB
Makefile
49 lines
1.8 KiB
Makefile
# Makefile for Sparc library files..
|
|
#
|
|
|
|
asflags-y := -ansi -DST_DIV0=0x02
|
|
ccflags-y := -Werror
|
|
|
|
lib-$(CONFIG_SPARC32) += ashrdi3.o
|
|
lib-$(CONFIG_SPARC32) += memcpy.o memset.o
|
|
lib-y += strlen.o
|
|
lib-y += checksum_$(BITS).o
|
|
lib-$(CONFIG_SPARC32) += blockops.o
|
|
lib-y += memscan_$(BITS).o memcmp.o strncmp_$(BITS).o
|
|
lib-$(CONFIG_SPARC32) += divdi3.o udivdi3.o
|
|
lib-$(CONFIG_SPARC32) += copy_user.o locks.o
|
|
lib-$(CONFIG_SPARC64) += atomic_64.o
|
|
lib-$(CONFIG_SPARC32) += lshrdi3.o ashldi3.o
|
|
lib-$(CONFIG_SPARC32) += muldi3.o bitext.o cmpdi2.o
|
|
|
|
lib-$(CONFIG_SPARC64) += copy_page.o clear_page.o bzero.o
|
|
lib-$(CONFIG_SPARC64) += csum_copy.o csum_copy_from_user.o csum_copy_to_user.o
|
|
lib-$(CONFIG_SPARC64) += VISsave.o
|
|
lib-$(CONFIG_SPARC64) += bitops.o
|
|
|
|
lib-$(CONFIG_SPARC64) += U1memcpy.o U1copy_from_user.o U1copy_to_user.o
|
|
|
|
lib-$(CONFIG_SPARC64) += U3memcpy.o U3copy_from_user.o U3copy_to_user.o
|
|
lib-$(CONFIG_SPARC64) += U3patch.o
|
|
|
|
lib-$(CONFIG_SPARC64) += NGmemcpy.o NGcopy_from_user.o NGcopy_to_user.o
|
|
lib-$(CONFIG_SPARC64) += NGpatch.o NGpage.o NGbzero.o
|
|
|
|
lib-$(CONFIG_SPARC64) += NG2memcpy.o NG2copy_from_user.o NG2copy_to_user.o
|
|
lib-$(CONFIG_SPARC64) += NG2patch.o
|
|
|
|
lib-$(CONFIG_SPARC64) += NG4memcpy.o NG4copy_from_user.o NG4copy_to_user.o
|
|
lib-$(CONFIG_SPARC64) += NG4patch.o NG4copy_page.o NG4clear_page.o NG4memset.o
|
|
|
|
lib-$(CONFIG_SPARC64) += GENmemcpy.o GENcopy_from_user.o GENcopy_to_user.o
|
|
lib-$(CONFIG_SPARC64) += GENpatch.o GENpage.o GENbzero.o
|
|
|
|
lib-$(CONFIG_SPARC64) += copy_in_user.o user_fixup.o memmove.o
|
|
lib-$(CONFIG_SPARC64) += mcount.o ipcsum.o xor.o hweight.o ffs.o
|
|
|
|
obj-y += iomap.o
|
|
obj-$(CONFIG_SPARC32) += atomic32.o ucmpdi2.o
|
|
obj-y += ksyms.o
|
|
obj-$(CONFIG_SPARC64) += PeeCeeI.o
|
|
obj-y += usercopy.o
|