]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2f827997f7c190031218d7fcdbe523c6af7bd862
tree65826a2781927fd697f1fd09df723fd70ec44b63
parent144a32430e754a2cb051d93499823c8d00de1df7
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