App with cpu affinity has non Null name and cpu_info, but
app without cpu affinity has Null name and cpu_info. Therefore,
name and cpu_info must be checked to judge whehter cpu affinity is
statically fixed at app.
Change-Id: I53693fe769c6a0ffe033fd49b700e44a6f0d3d92
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
static int cpu_sched_cpu_on(void *data);
-struct cpuset_info *cpu_sched_find_coreset(const char *name)
+static struct cpuset_info *cpu_sched_find_coreset(const char *name)
{
struct proc_conf_info *pci = fixed_app_and_service_exist_check(name, APP_TYPE);
if (pci == NULL)
return NULL;
+ if (pci->cpuset_info.name == NULL)
+ return NULL;
+
+ if (pci->cpuset_info.cpu_info == NULL)
+ return NULL;
+
return &pci->cpuset_info;
}