arm64/mpam: resctrl: Handle cpuhp and resctrl_dom allocation
hulk inclusion category: feature bugzilla: 34278 CVE: NA ------------------------------------------------- We implement the cpuhp hooks that allocated and free the resctrl domain structures, meanwhile, ctrl_val array in resctrl_resource structure are created and destroyed synchronously, so it continuously maintains the operations below when cpu online or offline, for mpam resctrl, only the cpu mask is needed to know. Most of this code are borrowed from James's(76814660 "arm_mpam: resctrl: Add boilerplate cpuhp and domain allocation"). Link: http://www.linux-arm.org/git?p=linux-jm.git;a=patch;h=768146605a808b379ae3861103f30a792af33ea2Signed-off-by: NWang ShaoBo <bobo.shaobowang@huawei.com> Reviewed-by: NXiongfeng Wang <wangxiongfeng2@huawei.com> Reviewed-by: NCheng Jian <cj.chengjian@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com> Signed-off-by: NCheng Jian <cj.chengjian@huawei.com>
Showing
想要评论请 注册 或 登录