|
@@ -13,6 +13,19 @@
|
|
|
|
|
|
#include "intel_rdt.h"
|
|
|
|
|
|
+/**
|
|
|
+ * rdtgroup_monitor_in_progress - Test if monitoring in progress
|
|
|
+ * @r: resource group being queried
|
|
|
+ *
|
|
|
+ * Return: 1 if monitor groups have been created for this resource
|
|
|
+ * group, 0 otherwise.
|
|
|
+ */
|
|
|
+static int __attribute__ ((unused))
|
|
|
+rdtgroup_monitor_in_progress(struct rdtgroup *rdtgrp)
|
|
|
+{
|
|
|
+ return !list_empty(&rdtgrp->mon.crdtgrp_list);
|
|
|
+}
|
|
|
+
|
|
|
/**
|
|
|
* rdtgroup_locksetup_user_restrict - Restrict user access to group
|
|
|
* @rdtgrp: resource group needing access restricted
|