suspend: fix freeze hangup which caused by insmod [1/1]
authorQiufang Dai <qiufang.dai@amlogic.com>
Thu, 26 Sep 2019 14:06:15 +0000 (22:06 +0800)
committerzihuan.ling <zihuan.ling@amlogic.com>
Tue, 15 Oct 2019 07:04:16 +0000 (03:04 -0400)
commit380e19a9997e9f4136ff7ead777c3700e6ea7406
tree46ff9588e78fef8907dae8a356509b10f901d5bc
parent909735d32baa6786266db683bf23377430d8c514
suspend: fix freeze hangup which caused by insmod [1/1]

PD#TV-10472

Problem:
When system on, enter freeze mode lead to flush deferd probe.
Init.rc also run insmod in parallel, if insmod task
atomic_inc(&probe_count), and this task is freezed,
deadlock happends.

Solution:
Move flush deferd probe action before freeze task

Verify:
X32A0-T972

Change-Id: I8949db32aea14e2da37e77658a9c999af39e2c83
Signed-off-by: Qiufang Dai <qiufang.dai@amlogic.com>
drivers/base/power/main.c
kernel/power/suspend.c