From: Quanyang Wang <quanyang.w...@windriver.com> This reverts commit b48ce4a44d42a7b92f13c8d64a53d23cd6689222.
The intent of exercise_stack_ptr is to keep the 4K-size stack of ncp_ddr_shutdown in L2 cache for the later usage. But using heap will break this. So revert it now. Reported-by: Mikael Beckius <mikael.beck...@windriver.com> Signed-off-by: Quanyang Wang <quanyang.w...@windriver.com> --- arch/arm/mach-axxia/ddr_retention.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/arch/arm/mach-axxia/ddr_retention.c b/arch/arm/mach-axxia/ddr_retention.c index ca7b1b771133..64ddb2f42c13 100644 --- a/arch/arm/mach-axxia/ddr_retention.c +++ b/arch/arm/mach-axxia/ddr_retention.c @@ -8,7 +8,6 @@ #include <linux/proc_fs.h> #include <linux/prefetch.h> #include <linux/delay.h> -#include <linux/slab.h> #include <linux/of.h> #include <linux/io.h> @@ -206,13 +205,9 @@ static inline void flush_tlb_ID(void) static void exercise_stack_ptr(volatile char *recursions) { volatile char *p; - char *stack_var; + char stack_var[1024]; int i; - stack_var = kmalloc(1024, GFP_KERNEL); - if (!stack_var) - return; - p = stack_var; for (i = 0; i < 1024; i++) @@ -222,8 +217,6 @@ static void exercise_stack_ptr(volatile char *recursions) *recursions -= 1; exercise_stack_ptr(recursions); } - - kfree(stack_var); } void -- 2.25.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#10632): https://lists.yoctoproject.org/g/linux-yocto/message/10632 Mute This Topic: https://lists.yoctoproject.org/mt/86952372/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-