|
@@ -551,7 +551,13 @@ dlpar_store_out:
|
|
return rc ? rc : count;
|
|
return rc ? rc : count;
|
|
}
|
|
}
|
|
|
|
|
|
-static CLASS_ATTR(dlpar, S_IWUSR, NULL, dlpar_store);
|
|
|
|
|
|
+static ssize_t dlpar_show(struct class *class, struct class_attribute *attr,
|
|
|
|
+ char *buf)
|
|
|
|
+{
|
|
|
|
+ return sprintf(buf, "%s\n", "memory,cpu");
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+static CLASS_ATTR(dlpar, S_IWUSR | S_IRUSR, dlpar_show, dlpar_store);
|
|
|
|
|
|
static int __init pseries_dlpar_init(void)
|
|
static int __init pseries_dlpar_init(void)
|
|
{
|
|
{
|