summaryrefslogtreecommitdiff
path: root/include/linux/resctrl.h
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2026-10-07 08:01:02 -1000
committerTejun Heo <tj@kernel.org>2026-10-07 08:01:02 -1000
commit92b542db38bf7cb4de583b2ca37febc549db0ce4 (patch)
tree30dcfdb338f7fdba597e1ec9314c2006df86f525 /include/linux/resctrl.h
parentfee1265a725725dac0ff7459f912d69558798b36 (diff)
parentd1a4549a3645e55cc9ade09e360280590b3c9559 (diff)
downloadlinux-next-92b542db38bf7cb4de583b2ca37febc549db0ce4.tar.gz
linux-next-92b542db38bf7cb4de583b2ca37febc549db0ce4.zip
Merge branch 'for-7.3-fixes' into for-next
Diffstat (limited to 'include/linux/resctrl.h')
-rw-r--r--include/linux/resctrl.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/linux/resctrl.h b/include/linux/resctrl.h
index 73ff522448a0..dd09c2ce9a0f 100644
--- a/include/linux/resctrl.h
+++ b/include/linux/resctrl.h
@@ -54,11 +54,11 @@ enum resctrl_res_level {
RDT_RESOURCE_MBA,
RDT_RESOURCE_SMBA,
RDT_RESOURCE_PERF_PKG,
-
- /* Must be the last */
- RDT_NUM_RESOURCES,
+ RDT_RESOURCE_LAST = RDT_RESOURCE_PERF_PKG
};
+#define RDT_NUM_RESOURCES (RDT_RESOURCE_LAST + 1)
+
/**
* enum resctrl_conf_type - The type of configuration.
* @CDP_NONE: No prioritisation, both code and data are controlled or monitored.
@@ -69,9 +69,10 @@ enum resctrl_conf_type {
CDP_NONE,
CDP_CODE,
CDP_DATA,
+ CDP_LAST = CDP_DATA
};
-#define CDP_NUM_TYPES (CDP_DATA + 1)
+#define CDP_NUM_TYPES (CDP_LAST + 1)
/*
* struct pseudo_lock_region - pseudo-lock region information
@@ -323,7 +324,7 @@ struct resctrl_mon {
* @cdp_capable: Is the CDP feature available on this resource
*/
struct rdt_resource {
- int rid;
+ enum resctrl_res_level rid;
bool alloc_capable;
bool mon_capable;
enum resctrl_scope ctrl_scope;