summaryrefslogtreecommitdiff
authorJianxin Pan <jianxin.pan@amlogic.com>2019-04-23 11:37:41 (GMT)
committer Jianxin Pan <jianxin.pan@amlogic.com>2019-04-24 06:54:13 (GMT)
commit944cbf81f3acd882ff63dcab3ea01be18788f91e (patch)
treea49c87a33e4f9c02ffa33092ae088b575451c169
parentb480c8fb30ffbcc72698947e3f5feaa3a06a04f4 (diff)
downloadcommon-944cbf81f3acd882ff63dcab3ea01be18788f91e.zip
common-944cbf81f3acd882ff63dcab3ea01be18788f91e.tar.gz
common-944cbf81f3acd882ff63dcab3ea01be18788f91e.tar.bz2
schedtune: fix crash when there is cpu boot fail in hmp [1/1]
PD#SWPL-7656 Problem: crash when there is cpu boot fail in hmp Solution: fix crash when there is cpu boot fail in hmp Verify: W400 Change-Id: I0153975593adb0bfcbc3c3bd6543f0fb2e6bf2e0 Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
Diffstat
-rw-r--r--kernel/sched/tune.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/sched/tune.c b/kernel/sched/tune.c
index fbdd00a..7399e70 100644
--- a/kernel/sched/tune.c
+++ b/kernel/sched/tune.c
@@ -951,6 +951,9 @@ schedtune_add_cluster_nrg(
* Assume we have EM data only at the CPU and
* the upper CLUSTER level
*/
+#ifdef CONFIG_AMLOGIC_MODIFY
+ if (sd2->parent)
+#endif
BUG_ON(!cpumask_equal(
sched_group_cpus(sg),
sched_group_cpus(sd2->parent->groups)