Skip to content

Commit 7bdb619

Browse files
James Morsebp3tk0v
authored andcommitted
x86/resctrl: Move enum resctrl_event_id to resctrl.h
resctrl_types.h contains common types and constants to enable architectures to use these types in their definitions within asm/resctrl.h. enum resctrl_event_id was placed in resctrl_types.h for resctrl_arch_get_cdp_enabled() and resctrl_arch_set_cdp_enabled(), but these two functions are no longer inlined by any architecture. Move enum resctrl_event_id to resctrl.h. Signed-off-by: James Morse <james.morse@arm.com> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Reviewed-by: Reinette Chatre <reinette.chatre@intel.com> Reviewed-by: Fenghua Yu <fenghuay@nvidia.com> Tested-by: Fenghua Yu <fenghuay@nvidia.com> Tested-by: Babu Moger <babu.moger@amd.com> Tested-by: Shaopeng Tan <tan.shaopeng@jp.fujitsu.com> Tested-by: Tony Luck <tony.luck@intel.com> Link: https://lore.kernel.org/20250515165855.31452-18-james.morse@arm.com
1 parent 3d95a49 commit 7bdb619

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

include/linux/resctrl.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,16 @@ int proc_resctrl_show(struct seq_file *m,
4848
for_each_rdt_resource((r)) \
4949
if ((r)->mon_capable)
5050

51+
enum resctrl_res_level {
52+
RDT_RESOURCE_L3,
53+
RDT_RESOURCE_L2,
54+
RDT_RESOURCE_MBA,
55+
RDT_RESOURCE_SMBA,
56+
57+
/* Must be the last */
58+
RDT_NUM_RESOURCES,
59+
};
60+
5161
/**
5262
* enum resctrl_conf_type - The type of configuration.
5363
* @CDP_NONE: No prioritisation, both code and data are controlled or monitored.

include/linux/resctrl_types.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,6 @@
3434
/* Max event bits supported */
3535
#define MAX_EVT_CONFIG_BITS GENMASK(6, 0)
3636

37-
enum resctrl_res_level {
38-
RDT_RESOURCE_L3,
39-
RDT_RESOURCE_L2,
40-
RDT_RESOURCE_MBA,
41-
RDT_RESOURCE_SMBA,
42-
43-
/* Must be the last */
44-
RDT_NUM_RESOURCES,
45-
};
46-
4737
/*
4838
* Event IDs, the values match those used to program IA32_QM_EVTSEL before
4939
* reading IA32_QM_CTR on RDT systems.

0 commit comments

Comments
 (0)