diff options
author | Michael Holzheu <holzheu@linux.vnet.ibm.com> | 2014-03-17 06:31:28 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2014-03-17 10:53:03 -0400 |
commit | 36a554021b44d146178ae98e598c9502a1269f7d (patch) | |
tree | c9e57a013359ce9370992a60d5f52361bc5f28af | |
parent | 184d0f0c06afb8f3b583db7b8d712caae06a24dd (diff) |
hypfs: Add clarification for "weight_min" attribute
The "weight_min" attribute got the wrong name. The value represents
the number of non-stopped (operating) CPUS. Therefore add a note and
rename the struct member to "ocpus".
Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
-rw-r--r-- | arch/s390/hypfs/hypfs_vm.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/arch/s390/hypfs/hypfs_vm.c b/arch/s390/hypfs/hypfs_vm.c index 24908ce149f1..32040ace00ea 100644 --- a/arch/s390/hypfs/hypfs_vm.c +++ b/arch/s390/hypfs/hypfs_vm.c | |||
@@ -32,7 +32,7 @@ struct diag2fc_data { | |||
32 | __u32 pcpus; | 32 | __u32 pcpus; |
33 | __u32 lcpus; | 33 | __u32 lcpus; |
34 | __u32 vcpus; | 34 | __u32 vcpus; |
35 | __u32 cpu_min; | 35 | __u32 ocpus; |
36 | __u32 cpu_max; | 36 | __u32 cpu_max; |
37 | __u32 cpu_shares; | 37 | __u32 cpu_shares; |
38 | __u32 cpu_use_samp; | 38 | __u32 cpu_use_samp; |
@@ -142,7 +142,12 @@ static int hpyfs_vm_create_guest(struct dentry *systems_dir, | |||
142 | ATTRIBUTE(cpus_dir, "capped", capped_value); | 142 | ATTRIBUTE(cpus_dir, "capped", capped_value); |
143 | ATTRIBUTE(cpus_dir, "dedicated", dedicated_flag); | 143 | ATTRIBUTE(cpus_dir, "dedicated", dedicated_flag); |
144 | ATTRIBUTE(cpus_dir, "count", data->vcpus); | 144 | ATTRIBUTE(cpus_dir, "count", data->vcpus); |
145 | ATTRIBUTE(cpus_dir, "weight_min", data->cpu_min); | 145 | /* |
146 | * Note: The "weight_min" attribute got the wrong name. | ||
147 | * The value represents the number of non-stopped (operating) | ||
148 | * CPUS. | ||
149 | */ | ||
150 | ATTRIBUTE(cpus_dir, "weight_min", data->ocpus); | ||
146 | ATTRIBUTE(cpus_dir, "weight_max", data->cpu_max); | 151 | ATTRIBUTE(cpus_dir, "weight_max", data->cpu_max); |
147 | ATTRIBUTE(cpus_dir, "weight_cur", data->cpu_shares); | 152 | ATTRIBUTE(cpus_dir, "weight_cur", data->cpu_shares); |
148 | 153 | ||