arm64/mpam: Fix softlockup when reading mondata
hulk inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I9SXQ8 -------------------------------- resctrl_dom_mon_data() call do_device_sync() wait for other CPU to respond IPI, which is expensive (up to a few ms). resctrl_dom_mon_data() may be called hundreds of times by resctrl_group_mondata_show(), causing soft lockup. Fix this by adding a cond_resched between each loop. Do the same for resctrl_group_update_domain_ctrls(). Fixes: 8d7469cd ("arm64/mpam: Integrate monitor data for Memory Bandwidth if cdp enabled") Signed-off-by:Yu Liao <liaoyu15@huawei.com>
Loading
Please sign in to comment