if (ret)
return ret;
- ret = ontime_sysfs_init(ehmp_kobj);
- if (ret)
- return ret;
-
- ret = lbt_sysfs_init(ehmp_kobj);
- if (ret)
- return ret;
-
return 0;
}
late_initcall(init_sysfs);
#ifdef CONFIG_SCHED_EMS
extern int
exynos_wakeup_balance(struct task_struct *p, int sd_flag, int sync);
-extern int __init lbt_sysfs_init(struct kobject *parent);
-extern int __init ontime_sysfs_init(struct kobject *parent);
#else
static inline int
exynos_wakeup_balance(struct task_struct *p, int sd_flag, int sync)
{
return -1;
}
-static inline int __init lbt_sysfs_init(struct kobject *parent)
-{
- return 0;
-}
-static inline int __init ontime_sysfs_init(struct kobject *parent)
-{
- return 0;
-}
#endif
return -ENOMEM;
}
-int __init lbt_sysfs_init(struct kobject *parent)
+static int __init lbt_sysfs_init(void)
{
int depth = get_topology_depth();
int i;
lbt_group.attrs = lbt_attrs;
- lbt_kobj = kobject_create_and_add("lbt", parent);
+ lbt_kobj = kobject_create_and_add("lbt", ems_kobj);
if (!lbt_kobj)
goto out;
pr_err("LBT(%s): failed to create sysfs node\n", __func__);
return -EINVAL;
}
+late_initcall(lbt_sysfs_init);
/****************************************************************/
/* Initialization */
return -ENOMEM;
}
-int __init ontime_sysfs_init(struct kobject *parent)
+static int __init ontime_sysfs_init(void)
{
struct ontime_cond *cond = ontime_cond;
int count, step, i;
ontime_group.attrs = ontime_attrs;
- ontime_kobj = kobject_create_and_add("ontime", parent);
+ ontime_kobj = kobject_create_and_add("ontime", ems_kobj);
if (!ontime_kobj)
goto out;
pr_err("ONTIME(%s): failed to create sysfs node\n", __func__);
return -EINVAL;
}
+late_initcall(ontime_sysfs_init);
/****************************************************************/
/* initialization */