aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/s390/sysinfo.c16
-rw-r--r--include/asm-s390/sysinfo.h5
2 files changed, 19 insertions, 2 deletions
diff --git a/drivers/s390/sysinfo.c b/drivers/s390/sysinfo.c
index 43fffa3b099d..c3e4ab07b9cc 100644
--- a/drivers/s390/sysinfo.c
+++ b/drivers/s390/sysinfo.c
@@ -35,6 +35,8 @@ static int stsi_1_1_1(struct sysinfo_1_1_1 *info, char *page, int len)
35 EBCASC(info->sequence, sizeof(info->sequence)); 35 EBCASC(info->sequence, sizeof(info->sequence));
36 EBCASC(info->plant, sizeof(info->plant)); 36 EBCASC(info->plant, sizeof(info->plant));
37 EBCASC(info->model_capacity, sizeof(info->model_capacity)); 37 EBCASC(info->model_capacity, sizeof(info->model_capacity));
38 EBCASC(info->model_perm_cap, sizeof(info->model_perm_cap));
39 EBCASC(info->model_temp_cap, sizeof(info->model_temp_cap));
38 len += sprintf(page + len, "Manufacturer: %-16.16s\n", 40 len += sprintf(page + len, "Manufacturer: %-16.16s\n",
39 info->manufacturer); 41 info->manufacturer);
40 len += sprintf(page + len, "Type: %-4.4s\n", 42 len += sprintf(page + len, "Type: %-4.4s\n",
@@ -57,8 +59,18 @@ static int stsi_1_1_1(struct sysinfo_1_1_1 *info, char *page, int len)
57 info->sequence); 59 info->sequence);
58 len += sprintf(page + len, "Plant: %-4.4s\n", 60 len += sprintf(page + len, "Plant: %-4.4s\n",
59 info->plant); 61 info->plant);
60 len += sprintf(page + len, "Model Capacity: %-16.16s\n", 62 len += sprintf(page + len, "Model Capacity: %-16.16s %08u\n",
61 info->model_capacity); 63 info->model_capacity, *(u32 *) info->model_cap_rating);
64 if (info->model_perm_cap[0] != '\0')
65 len += sprintf(page + len,
66 "Model Perm. Capacity: %-16.16s %08u\n",
67 info->model_perm_cap,
68 *(u32 *) info->model_perm_cap_rating);
69 if (info->model_temp_cap[0] != '\0')
70 len += sprintf(page + len,
71 "Model Temp. Capacity: %-16.16s %08u\n",
72 info->model_temp_cap,
73 *(u32 *) info->model_temp_cap_rating);
62 return len; 74 return len;
63} 75}
64 76
diff --git a/include/asm-s390/sysinfo.h b/include/asm-s390/sysinfo.h
index 014f2a24664e..abe10ae15e46 100644
--- a/include/asm-s390/sysinfo.h
+++ b/include/asm-s390/sysinfo.h
@@ -20,6 +20,11 @@ struct sysinfo_1_1_1 {
20 char sequence[16]; 20 char sequence[16];
21 char plant[4]; 21 char plant[4];
22 char model[16]; 22 char model[16];
23 char model_perm_cap[16];
24 char model_temp_cap[16];
25 char model_cap_rating[4];
26 char model_perm_cap_rating[4];
27 char model_temp_cap_rating[4];
23}; 28};
24 29
25struct sysinfo_1_2_1 { 30struct sysinfo_1_2_1 {