Commit 18c5a26d authored by Zhou Guanghui's avatar Zhou Guanghui Committed by Yang Yingliang
Browse files

Driver/SMMUV3: Bugfix for the softlockup when the driver processes events

hulk inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I4D63I


CVE: NA

-------------------------------------------------

If the SMMU frequently reports a large number of events,
the events in the event queue cannot be processed in time.
As a result, the while loop cannot exit. So add a cond_resched()
to avoid softlockup.

Signed-off-by: default avatarZhou Guanghui <zhouguanghui1@huawei.com>
Signed-off-by: default avatarGuo Mengqi <guomengqi3@huawei.com>
Reviewed-by: default avatarWeilong Chen <chenweilong@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent e39a4742
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment