diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2010-10-25 10:10:16 -0400 |
---|---|---|
committer | Martin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com> | 2010-10-25 10:10:15 -0400 |
commit | 7aca2eda5c2a45884ff0ce0bb1ebfa8f83c1e0f9 (patch) | |
tree | bf07bbce708b750c7db2e700224d4273051d38be /arch/s390/kernel/sysinfo.c | |
parent | 8b8c12b120071d1db2212a439ccfebcb0ab0cf2a (diff) |
[S390] sysinfo: display capacity adjustment indicator
Display machine capacity adjustment indicator and capacity
change reason if available in /proc/sysinfo.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kernel/sysinfo.c')
-rw-r--r-- | arch/s390/kernel/sysinfo.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/s390/kernel/sysinfo.c b/arch/s390/kernel/sysinfo.c index a0ffc7717ed6..a91274b4eb8f 100644 --- a/arch/s390/kernel/sysinfo.c +++ b/arch/s390/kernel/sysinfo.c | |||
@@ -74,6 +74,13 @@ static int stsi_1_1_1(struct sysinfo_1_1_1 *info, char *page, int len) | |||
74 | "Model Temp. Capacity: %-16.16s %08u\n", | 74 | "Model Temp. Capacity: %-16.16s %08u\n", |
75 | info->model_temp_cap, | 75 | info->model_temp_cap, |
76 | *(u32 *) info->model_temp_cap_rating); | 76 | *(u32 *) info->model_temp_cap_rating); |
77 | if (info->cai) { | ||
78 | len += sprintf(page + len, | ||
79 | "Capacity Adj. Ind.: %d\n", | ||
80 | info->cai); | ||
81 | len += sprintf(page + len, "Capacity Ch. Reason: %d\n", | ||
82 | info->ccr); | ||
83 | } | ||
77 | return len; | 84 | return len; |
78 | } | 85 | } |
79 | 86 | ||