s390/cmf: read from hw buffer
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Thu, 7 Sep 2017 11:18:40 +0000 (13:18 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 28 Sep 2017 05:29:42 +0000 (07:29 +0200)
commitd4d287e81ff1924f0791fad0638551daec7742b5
tree65826a2781927fd697f1fd09df723fd70ec44b63
parent81b050b564b814585e1515b218783c8ad56913f1
s390/cmf: read from hw buffer

To ensure data consistency when reading from the channel measurement
block we wait for the subchannel to become idle and copy the whole
block. This is unnecessary when all we do is export the individual
values via sysfs. Read the values for sysfs export directly from
the measurement block.

Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Reviewed-by: Peter Oberparleiter <oberpar@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/cmf.c