Skip to content

Commit 23fe1cf

Browse files
committed
Add some memory optimisation patches from Sultan and other kernels
1 parent a348504 commit 23fe1cf

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/actions/action.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,17 @@ runs:
757757
patch -p1 -F 3 < "../../../kernel_patches/oneplus/hmbird/fengchi_${OP_MODEL}_${OP_OS_VERSION}.patch"
758758
else
759759
echo "Hmbird not enabled, skipping fengchi patch"
760-
fi
760+
fi
761+
762+
patch -p1 --forward "../../../kernel_patches/common/optimized_mem_operations.patch"
763+
patch -p1 --forward "../../../kernel_patches/common/file_struct_8bytes_align.patch"
764+
patch -p1 --forward "../../../kernel_patches/common/reduce_cache_pressure.patch"
765+
if [ "$(printf '%s\n' "$KERNEL_VERSION" "$MIN_VERSION" | sort -V | head -n1)" = "$KERNEL_VERSION" ]; then
766+
patch -p1 --forward "../../../kernel_patches/common/clear_page_16bytes_align.patch"
767+
else
768+
cat "../../../kernel_patches/common/clear_page_16bytes_align.patch" | sed -e 's/SYM_FUNC_START_PI(clear_page)/SYM_FUNC_START_PI(__pi_clear_page)/' | patch -p1 -F3 --forward
769+
fi
770+
761771
echo "✅ Other patches applied"
762772
echo "::endgroup::"
763773

0 commit comments

Comments
 (0)