arm64/mpam: Split header files into suitable location
hulk inclusion
category: feature
feature: ARM MPAM support
bugzilla: 48265
CVE: NA
--------------------------------
So far there are some declarations shared by resctrlfs.c and mpam
core module files under kernel/mpam directory scattered in mpam.h
and resctrl.h, this is organized like this:
-- asm/
+-- resctrl.h +
+-- mpam.h | +
+-- mpam_resource.h | | +
| | |
-- fs/ | | +-> mpam/
+-- resctrlfs.c <----+----+------> +-- mpam_resctrl.c ...
We move this declarations shared by resctrlfs.c and mpam/ to resctrl.h
and split another declarations into mpam_internal.h, also including
moving mpam_resource.h to mpam/ directory, currently this is organized
like this:
-- asm/
+-- mpam.h +----> export to other modules(e.g. SMMU master io)
+-- resctrl.h +
|
-- mpam/ |
+-- mpam_internal.h | +
+-- mpam_resource.h | | +
| | |
-- fs/ | +----+-> mpam/
+-- resctrlfs.c <----+-----------> +-- mpam_resctrl.c ...
In this way can we build a clearer framework for MPAM usage.
Signed-off-by:
Wang ShaoBo <bobo.shaobowang@huawei.com>
Reviewed-by:
Xiongfeng Wang <wangxiongfeng2@huawei.com>
Reviewed-by:
Cheng Jian <cj.chengjian@huawei.com>
Signed-off-by:
Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by:
Zheng Zengkai <zhengzengkai@huawei.com>
Loading
Please sign in to comment