Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 216747
b: refs/heads/master
c: 7aca2ed
h: refs/heads/master
i:
  216745: f48ee34
  216743: 923e86a
v: v3
  • Loading branch information
Heiko Carstens authored and Martin Schwidefsky committed Oct 25, 2010
1 parent 25f1343 commit 442ebb5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8b8c12b120071d1db2212a439ccfebcb0ab0cf2a
refs/heads/master: 7aca2eda5c2a45884ff0ce0bb1ebfa8f83c1e0f9
5 changes: 4 additions & 1 deletion trunk/arch/s390/include/asm/sysinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
#define __ASM_S390_SYSINFO_H

struct sysinfo_1_1_1 {
char reserved_0[32];
unsigned short :16;
unsigned char ccr;
unsigned char cai;
char reserved_0[28];
char manufacturer[16];
char type[4];
char reserved_1[12];
Expand Down
7 changes: 7 additions & 0 deletions trunk/arch/s390/kernel/sysinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@ static int stsi_1_1_1(struct sysinfo_1_1_1 *info, char *page, int len)
"Model Temp. Capacity: %-16.16s %08u\n",
info->model_temp_cap,
*(u32 *) info->model_temp_cap_rating);
if (info->cai) {
len += sprintf(page + len,
"Capacity Adj. Ind.: %d\n",
info->cai);
len += sprintf(page + len, "Capacity Ch. Reason: %d\n",
info->ccr);
}
return len;
}

Expand Down

0 comments on commit 442ebb5

Please sign in to comment.