From 43d2e2e5d1991bd29c2bee449c761343ee9ca935 Mon Sep 17 00:00:00 2001 From: Hwankyu Jhun Date: Wed, 31 Jan 2018 16:07:23 +0900 Subject: [PATCH] Fix a bug about onboot option Change-Id: Iae608408db233a362f235d626efbcf33a653350b Signed-off-by: Hwankyu Jhun --- src/launchpad.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/launchpad.c b/src/launchpad.c index 5fe0aba..49f2f81 100755 --- a/src/launchpad.c +++ b/src/launchpad.c @@ -1395,6 +1395,9 @@ static void __update_slot(int type, bool app_exists) __reset_slot(cpc); } } else { + if (!cpc->touched && !cpc->on_boot) + return; + if (cpc->pid == CANDIDATE_NONE && cpc->idle_checker == 0) { _get_cpu_idle(&total, &idle); -- 2.7.4