Commit e4048f62 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 c20fca12
...@@ -40,6 +40,12 @@ config MPU_SYSLINK_IPC ...@@ -40,6 +40,12 @@ config MPU_SYSLINK_IPC
help help
Syslink IPC Module 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 endif
......
...@@ -25,10 +25,10 @@ ...@@ -25,10 +25,10 @@
#include "procdefs.h" #include "procdefs.h"
#include "processor.h" #include "processor.h"
#include <syslink/atomic_linux.h> #include <syslink/atomic_linux.h>
#if defined SYSLINK_USE_SYSMGR #if defined CONFIG_SYSLINK_USE_SYSMGR
#include <sysmgr.h> #include <sysmgr.h>
#include <platform.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, ...@@ -579,7 +579,7 @@ int proc_mgr_start(void *handle, u32 entry_point,
proc_mgr_get_start_params(handle, &tmp_params); proc_mgr_get_start_params(handle, &tmp_params);
params = &tmp_params; params = &tmp_params;
} }
#if defined SYSLINK_USE_SYSMGR #if defined CONFIG_SYSLINK_USE_SYSMGR
platform_load_callback((void *)params->proc_id); /* FIXME */ platform_load_callback((void *)params->proc_id); /* FIXME */
#endif #endif
WARN_ON(mutex_lock_interruptible(proc_mgr_obj_state.gate_handle)); WARN_ON(mutex_lock_interruptible(proc_mgr_obj_state.gate_handle));
...@@ -591,12 +591,12 @@ int proc_mgr_start(void *handle, u32 entry_point, ...@@ -591,12 +591,12 @@ int proc_mgr_start(void *handle, u32 entry_point,
entry_point, &proc_params); entry_point, &proc_params);
mutex_unlock(proc_mgr_obj_state.gate_handle); mutex_unlock(proc_mgr_obj_state.gate_handle);
#if defined SYSLINK_USE_SYSMGR #if defined CONFIG_SYSLINK_USE_SYSMGR
if (retval == 0) { if (retval == 0) {
/* TBD: should be removed when notify local is implemepented */ /* TBD: should be removed when notify local is implemepented */
platform_start_callback(proc_mgr_handle->proc_id); platform_start_callback(proc_mgr_handle->proc_id);
} }
#endif /* defined (SYSLINK_USE_SYSMGR)*/ #endif /* defined (CONFIG_SYSLINK_USE_SYSMGR)*/
return retval;; return retval;;
} }
...@@ -624,10 +624,10 @@ int proc_mgr_stop(void *handle) ...@@ -624,10 +624,10 @@ int proc_mgr_stop(void *handle)
return -EFAULT; return -EFAULT;
} }
BUG_ON(handle == NULL); BUG_ON(handle == NULL);
#if defined SYSLINK_USE_SYSMGR #if defined CONFIG_SYSLINK_USE_SYSMGR
/* TBD: should be removed when notify local is implemepented */ /* TBD: should be removed when notify local is implemepented */
platform_stop_callback(proc_mgr_handle->proc_id); 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)); WARN_ON(mutex_lock_interruptible(proc_mgr_obj_state.gate_handle));
retval = processor_stop(proc_mgr_handle->proc_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