qca: Disabling dcache before scheduling secondary cores

Disabling dcache before scheduling secondary cores
and enabling it back after the cores are down.

Change-Id: I73011db903a0da1113d09fb8306b8d3f940ece60
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
This commit is contained in:
Gokul Sriram Palanisamy 2018-02-15 17:06:08 +05:30 committed by Gerrit - the friendly Code Review server
parent 7d93e5bcac
commit 9b5374d10a

View file

@ -106,6 +106,8 @@ int do_runmulticore(cmd_tbl_t *cmdtp,
if ((argc <= 1) || (argc > 4))
return CMD_RET_USAGE;
dcache_disable();
/* Setting up stack for secondary cores */
memset(core, 0, sizeof(core));
@ -204,6 +206,8 @@ int do_runmulticore(cmd_tbl_t *cmdtp,
free(core[i - 1].stack_top_ptr);
}
dcache_enable();
return CMD_RET_SUCCESS;
}