]> git.karo-electronics.de Git - karo-tx-linux.git/commit
s390/sysinfo: convert /proc/sysinfo to seqfile
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 3 Sep 2012 07:38:30 +0000 (09:38 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 17 Sep 2012 09:30:25 +0000 (11:30 +0200)
commite97107d6fbae0dbc71771c0d74636255dd5900cf
tree31c8a393ae5aabd2ab3d69c978c30be10681a2fd
parentf4c255fb89dd0a73997bc3a156fc5a1e3d8876f2
s390/sysinfo: convert /proc/sysinfo to seqfile

The current proc implementation of the /proc/sysinfo file writes all
informations contained in all system information blocks to a single
page.
This is done by calling sprintf all the time in the expectation that
everything will fit into a single page. This however is not necessarily
true if the configuration of a machine is very large.
So convert /proc/sysinfo to avoid writing into random memory regions.

For readability reasons a couple of lines are longer than 80 characters.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/sysinfo.c