Even the late activation process is removed since commit
cdf2e4d1139c
("core: Remove late activation process"), the 'boot_done' state is
still passed as a parameter for INIT_DONE event. So, this patch
removes the unnecessary parameter.
Change-Id: I3b7bf1d6cba8080618fd486c7ab5c2db775ae7de
fixes:
cdf2e4d1139c ("core: Remove late activation process")
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
if (ret < 0)
return ret;
- ret = 1;
- device_notify(DEVICE_NOTIFIER_INIT_DONE, &ret);
+ device_notify(DEVICE_NOTIFIER_INIT_DONE, NULL);
return 0;
}
GDBusMethodInvocation *invoc, gpointer user_data)
{
int ret = 0;
- int booting_done = 1;
if (g_pmqos)
_I("PASS PMQoS is already started\n");
else
- ret = pmqos_init_done(&booting_done, NULL);
+ ret = pmqos_init_done(NULL, NULL);
g_dbus_method_invocation_return_value(invoc, g_variant_new("(i)", ret));
*/
static int pmqos_init_done(void *data, void *user_data)
{
- int *booting_done;
int ret;
int i;
- /*
- * As a callback function for the booting-done event, it is notified
- * with the result of the booting_finished() function by using the
- * first argument, void *data. When it is successfully booted up, an int
- * value, 1 is passed with the first argument.
- */
- booting_done = (int *)data;
- if (!(*booting_done))
- return -EINVAL;
-
if (g_pmqos)
return 0;
*/
static int thermal_init_done(void *data, void *user_data)
{
- int *booting_done;
int ret;
int i;
- /*
- * As a callback function for the booting-done event, it is notified
- * with the result of the booting_finished() function by using the
- * first argument, void *data. When it is successfully booted up, an int
- * value, 1 is passed with the first argument.
- */
- booting_done = (int *)data;
- if (!(*booting_done))
- return -EINVAL;
-
if (g_thermal)
return 0;
GDBusMethodInvocation *invoc, gpointer user_data)
{
int ret = 0;
- int booting_done = 1;
if (g_thermal)
_I("Thermal Monitor is already started\n");
else
- ret = thermal_init_done(&booting_done, NULL);
+ ret = thermal_init_done(NULL, NULL);
g_dbus_method_invocation_return_value(invoc, g_variant_new("(i)", ret));