Commit 2e42e9c3 authored by Simon Que's avatar Simon Que Committed by Hari Kanigeri

SYSLINK: ipc - platform cleanup loads config info

platform_stop_callback now reads the config info for each module, just like
platform_start_callback does.  The problem was that it didn't read it before,
nor did it save the config info from platform_start_callback for each Ducati
core separately.  Thus only the AppM3 config was saved, and then used for SysM3
cleanup.
Signed-off-by: default avatarSimon Que <sque@ti.com>
parent d703f13f
......@@ -1275,6 +1275,7 @@ void platform_stop_callback(void *arg)
s32 status = 0;
u16 proc_id = (u32) arg;
int index = 0;
u32 nread = 0;
if (proc_id == multiproc_get_id("SysM3"))
index = SMHEAP_SRINDEX_SYSM3;
......@@ -1285,6 +1286,13 @@ void platform_stop_callback(void *arg)
goto proc_invalid_id;
}
/* Read the scalability info */
do {
nread = sysmgr_get_object_config(proc_id, (void *) &pc_params,
SYSMGR_CMD_SCALABILITY,
sizeof(struct sysmgr_proc_config));
} while (nread != sizeof(struct sysmgr_proc_config));
if (pc_params.use_messageq) {
/* Finalize drivers */
if (index == SMHEAP_SRINDEX_APPM3)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment