From: Cornelia Huck Date: Mon, 17 Jul 2006 14:09:28 +0000 (+0200) Subject: [S390] channel measurement interval display. X-Git-Tag: v2.6.18-rc3~77^2~3 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=13ffa927abb74d4365b0e22f186befe4746b5897;p=linux-2.6-omap-h63xx.git [S390] channel measurement interval display. Display avg_sample_interval in nanoseconds, like it is documented. Signed-off-by: Cornelia Huck Signed-off-by: Martin Schwidefsky --- diff --git a/drivers/s390/cio/cmf.c b/drivers/s390/cio/cmf.c index 0df3af1f08d..828b2d334f0 100644 --- a/drivers/s390/cio/cmf.c +++ b/drivers/s390/cio/cmf.c @@ -1068,6 +1068,7 @@ cmb_show_avg_sample_interval(struct device *dev, struct device_attribute *attr, if (count) { interval = cmb_data->last_update - cdev->private->cmb_start_time; + interval = (interval * 1000) >> 12; interval /= count; } else interval = -1;