s390/cmf: avg_utilization
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Fri, 8 Sep 2017 19:01:38 +0000 (21:01 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 28 Sep 2017 05:29:42 +0000 (07:29 +0200)
commitcb09b356cd43fb079ea85128dcd17e5b65585fe8
tree06e57e540762016ae5686a474024a942c610ced2
parentd4d287e81ff1924f0791fad0638551daec7742b5
s390/cmf: avg_utilization

All (but one) cmf related sysfs attributes have been converted to read
directly from the measurement block using cmf_read. This is not
possible for the avg_utilization attribute since this is an aggregation
of several values for which cmf_read only returns average values.

Move the computation of the utilization value to the cmf_read interface
such that it can use the raw data.

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