|
@@ -122,6 +122,7 @@ struct mongroup {
|
|
* @type: indicates type of this rdtgroup - either
|
|
* @type: indicates type of this rdtgroup - either
|
|
* monitor only or ctrl_mon group
|
|
* monitor only or ctrl_mon group
|
|
* @mon: mongroup related data
|
|
* @mon: mongroup related data
|
|
|
|
+ * @mode: mode of resource group
|
|
*/
|
|
*/
|
|
struct rdtgroup {
|
|
struct rdtgroup {
|
|
struct kernfs_node *kn;
|
|
struct kernfs_node *kn;
|
|
@@ -132,6 +133,7 @@ struct rdtgroup {
|
|
atomic_t waitcount;
|
|
atomic_t waitcount;
|
|
enum rdt_group_type type;
|
|
enum rdt_group_type type;
|
|
struct mongroup mon;
|
|
struct mongroup mon;
|
|
|
|
+ enum rdtgrp_mode mode;
|
|
};
|
|
};
|
|
|
|
|
|
/* rdtgroup.flags */
|
|
/* rdtgroup.flags */
|
|
@@ -461,6 +463,7 @@ ssize_t rdtgroup_schemata_write(struct kernfs_open_file *of,
|
|
char *buf, size_t nbytes, loff_t off);
|
|
char *buf, size_t nbytes, loff_t off);
|
|
int rdtgroup_schemata_show(struct kernfs_open_file *of,
|
|
int rdtgroup_schemata_show(struct kernfs_open_file *of,
|
|
struct seq_file *s, void *v);
|
|
struct seq_file *s, void *v);
|
|
|
|
+enum rdtgrp_mode rdtgroup_mode_by_closid(int closid);
|
|
struct rdt_domain *get_domain_from_cpu(int cpu, struct rdt_resource *r);
|
|
struct rdt_domain *get_domain_from_cpu(int cpu, struct rdt_resource *r);
|
|
int alloc_rmid(void);
|
|
int alloc_rmid(void);
|
|
void free_rmid(u32 rmid);
|
|
void free_rmid(u32 rmid);
|