diff options
author | Pierre Peiffer <pierre.peiffer@stericsson.com> | 2011-07-18 18:35:30 +0200 |
---|---|---|
committer | Philippe Langlais <philippe.langlais@linaro.org> | 2012-03-19 09:02:19 +0100 |
commit | 6f252efd82ddb3147ab79023624e2d898338f197 (patch) | |
tree | 5ffbdca64ee00c363d00c6c4c66b9f738f5ffdd5 /drivers/staging/nmf-cm/cmld.c | |
parent | 3f4e102901beba5e65e1bd355434a577a928f088 (diff) |
U8500 NMF-CM: add support for component preloading
Provide support for pre-loading some NMF components, used
to pre-load some components that are on a time critical path.
Having such components already pre-loaded decreases the time
required to instantiate and deploy them.
ST-Ericsson ID: 352754
ST-Ericsson Linux next: -
ST-Ericsson FOSS-OUT ID: Trivial
Depends-On: If8e129163e6c94b7c239c84af667b16d7a1b56ac, I73416c15f75afce61a056f318a448a034182acb2, Id40225d1ce93f2c9cfc085744717dc091add74c4
Signed-off-by: Pierre Peiffer <pierre.peiffer@stericsson.com>
Change-Id: I4aecce1bcc63e6d4b04e251e821c8896ed63ba54
Diffstat (limited to 'drivers/staging/nmf-cm/cmld.c')
-rw-r--r-- | drivers/staging/nmf-cm/cmld.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/staging/nmf-cm/cmld.c b/drivers/staging/nmf-cm/cmld.c index 158524ddcb4..d01949c8673 100644 --- a/drivers/staging/nmf-cm/cmld.c +++ b/drivers/staging/nmf-cm/cmld.c @@ -29,7 +29,7 @@ #include "cm_service.h" #include "cm_dma.h" -#define CMDRIVER_PATCH_VERSION 106 +#define CMDRIVER_PATCH_VERSION 109 #define O_FLUSH 0x1000000 static int cmld_major; @@ -690,6 +690,11 @@ static long cmld_control_ctl(struct file *file, unsigned int cmd, unsigned long return copy_to_user((void*)arg, &v, sizeof(v)); } else return -EINVAL; + case CM_PRIV_ISCOMPONENTCACHEEMPTY: + if (CM_ENGINE_IsComponentCacheEmpty()) + return 0; + else + return -ENOENT; default: { pr_err("CM(%s): unsupported command %i\n", __func__, cmd); |