pipeline: remove unnecessary pipeline_init and pipeline_data

Removes unnecessary pipeline_init function and pipeline_data
structure.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
This commit is contained in:
Tomasz Lauda 2018-12-14 12:22:12 +01:00 committed by Liam Girdwood
parent 78f13ed4c6
commit 5ad5f07078
3 changed files with 0 additions and 30 deletions

View File

@ -48,10 +48,6 @@
#include <sof/idc.h> #include <sof/idc.h>
#include <platform/idc.h> #include <platform/idc.h>
struct pipeline_data {
spinlock_t lock;
};
/* generic operation data used by op graph walk */ /* generic operation data used by op graph walk */
struct op_data { struct op_data {
int op; int op;
@ -61,7 +57,6 @@ struct op_data {
void *cmd_data; void *cmd_data;
}; };
static struct pipeline_data *pipe_data;
static void pipeline_task(void *arg); static void pipeline_task(void *arg);
/* call op on all upstream components - locks held by caller */ /* call op on all upstream components - locks held by caller */
@ -1317,20 +1312,3 @@ static void pipeline_task(void *arg)
sched: sched:
tracev_pipe("pipeline_task() sched"); tracev_pipe("pipeline_task() sched");
} }
/* init pipeline */
int pipeline_init(void)
{
trace_pipe("pipeline_init()");
pipe_data = rzalloc(RZONE_RUNTIME, SOF_MEM_CAPS_RAM,
sizeof(*pipe_data));
spinlock_init(&pipe_data->lock);
if (!pipe_data) {
trace_pipe_error("failed to init pipeline");
return -ENOMEM;
}
return 0;
}

View File

@ -363,11 +363,6 @@ int init_static_pipeline(struct ipc *ipc)
int k; int k;
int ret; int ret;
/* init system pipeline core */
ret = pipeline_init();
if (ret < 0)
return ret;
/* create the pipelines */ /* create the pipelines */
for (i = 0; i < ARRAY_SIZE(pipeline); i++) { for (i = 0; i < ARRAY_SIZE(pipeline); i++) {

View File

@ -129,9 +129,6 @@ void pipeline_cache(struct pipeline *p, struct comp_dev *dev, int cmd);
/* trigger pipeline - atomic */ /* trigger pipeline - atomic */
int pipeline_trigger(struct pipeline *p, struct comp_dev *host_cd, int cmd); int pipeline_trigger(struct pipeline *p, struct comp_dev *host_cd, int cmd);
/* initialise pipeline subsys */
int pipeline_init(void);
/* static pipeline creation */ /* static pipeline creation */
int init_static_pipeline(struct ipc *ipc); int init_static_pipeline(struct ipc *ipc);