|
@@ -1036,9 +1036,17 @@ out:
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+static int rdtgroup_show_options(struct seq_file *seq, struct kernfs_root *kf)
|
|
|
|
+{
|
|
|
|
+ if (rdt_resources_all[RDT_RESOURCE_L3DATA].enabled)
|
|
|
|
+ seq_puts(seq, ",cdp");
|
|
|
|
+ return 0;
|
|
|
|
+}
|
|
|
|
+
|
|
static struct kernfs_syscall_ops rdtgroup_kf_syscall_ops = {
|
|
static struct kernfs_syscall_ops rdtgroup_kf_syscall_ops = {
|
|
- .mkdir = rdtgroup_mkdir,
|
|
|
|
- .rmdir = rdtgroup_rmdir,
|
|
|
|
|
|
+ .mkdir = rdtgroup_mkdir,
|
|
|
|
+ .rmdir = rdtgroup_rmdir,
|
|
|
|
+ .show_options = rdtgroup_show_options,
|
|
};
|
|
};
|
|
|
|
|
|
static int __init rdtgroup_setup_root(void)
|
|
static int __init rdtgroup_setup_root(void)
|