Commit 11f11d47 authored by Hari Kanigeri's avatar Hari Kanigeri

SYSINK:ipc-add sys manager config option

This patch adds the config option to select sys manager
feature. This is a temporary patch until Sys manager
feature is stabilized.
Signed-off-by: default avatarHari Kanigeri <h-kanigeri2@ti.com>
parent 57a1abd1
......@@ -40,6 +40,12 @@ config MPU_SYSLINK_IPC
help
Syslink IPC Module
config SYSLINK_USE_SYSMGR
bool "Enable SYS MGR setup"
depends on MPU_SYSLINK_IPC && SYSLINK_PROC
default n
help
This is the experimental option to enable SYS manager setup
endif
......
......@@ -25,10 +25,10 @@
#include "procdefs.h"
#include "processor.h"
#include <syslink/atomic_linux.h>
#if defined SYSLINK_USE_SYSMGR
#if defined CONFIG_SYSLINK_USE_SYSMGR
#include <sysmgr.h>
#include <platform.h>
#endif /* if defined (SYSLINK_USE_SYSMGR) */
#endif /* if defined (CONFIG_SYSLINK_USE_SYSMGR) */
/* ================================
......@@ -579,7 +579,7 @@ int proc_mgr_start(void *handle, u32 entry_point,
proc_mgr_get_start_params(handle, &tmp_params);
params = &tmp_params;
}
#if defined SYSLINK_USE_SYSMGR
#if defined CONFIG_SYSLINK_USE_SYSMGR
platform_load_callback((void *)params->proc_id); /* FIXME */
#endif
WARN_ON(mutex_lock_interruptible(proc_mgr_obj_state.gate_handle));
......@@ -591,12 +591,12 @@ int proc_mgr_start(void *handle, u32 entry_point,
entry_point, &proc_params);
mutex_unlock(proc_mgr_obj_state.gate_handle);
#if defined SYSLINK_USE_SYSMGR
#if defined CONFIG_SYSLINK_USE_SYSMGR
if (retval == 0) {
/* TBD: should be removed when notify local is implemepented */
platform_start_callback(proc_mgr_handle->proc_id);
}
#endif /* defined (SYSLINK_USE_SYSMGR)*/
#endif /* defined (CONFIG_SYSLINK_USE_SYSMGR)*/
return retval;;
}
......@@ -624,10 +624,10 @@ int proc_mgr_stop(void *handle)
return -EFAULT;
}
BUG_ON(handle == NULL);
#if defined SYSLINK_USE_SYSMGR
#if defined CONFIG_SYSLINK_USE_SYSMGR
/* TBD: should be removed when notify local is implemepented */
platform_stop_callback(proc_mgr_handle->proc_id);
#endif /* #if defined (SYSLINK_USE_SYSMGR) */
#endif /* #if defined (CONFIG_SYSLINK_USE_SYSMGR) */
WARN_ON(mutex_lock_interruptible(proc_mgr_obj_state.gate_handle));
retval = processor_stop(proc_mgr_handle->proc_handle);
......
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