android_kernel_xiaomi_sm8350/arch/powerpc/lib
Kumar Gala 2d1b202762 powerpc: Fixup lwsync at runtime
To allow for a single kernel image on e500 v1/v2/mc we need to fixup lwsync
at runtime.  On e500v1/v2 lwsync causes an illop so we need to patch up
the code.  We default to 'sync' since that is always safe and if the cpu
is capable we will replace 'sync' with 'lwsync'.

We introduce CPU_FTR_LWSYNC as a way to determine at runtime if this is
needed.  This flag could be moved elsewhere since we dont really use it
for the normal CPU_FTR purpose.

Finally we only store the relative offset in the fixup section to keep it
as small as possible rather than using a full fixup_entry.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2008-07-03 16:58:10 +10:00
..
alloc.c
checksum_32.S
checksum_64.S
code-patching.c powerpc: Add tests of the code patching routines 2008-07-01 11:28:22 +10:00
copy_32.S
copypage_64.S
copyuser_64.S
crtsavres.S [POWERPC] Fix -Os kernel builds with newer gcc versions 2008-06-16 15:00:54 +10:00
devres.c [POWERPC] devres: Add devm_ioremap_prot() 2008-05-05 16:47:14 +10:00
div64.S
dma-noncoherent.c powerpc: Prevent memory corruption due to cache invalidation of unaligned DMA buffer 2008-07-01 11:28:54 +10:00
feature-fixups-test.S powerpc: Fixup lwsync at runtime 2008-07-03 16:58:10 +10:00
feature-fixups.c powerpc: Fixup lwsync at runtime 2008-07-03 16:58:10 +10:00
locks.c
Makefile powerpc: Add self-tests of the feature fixup code 2008-07-01 11:28:30 +10:00
mem_64.S
memcpy_64.S
rheap.c
sstep.c
string.S
usercopy_64.c