]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[S390] channel measurement interval display.
authorCornelia Huck <cornelia.huck@de.ibm.com>
Mon, 17 Jul 2006 14:09:28 +0000 (16:09 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 17 Jul 2006 14:09:28 +0000 (16:09 +0200)
Display avg_sample_interval in nanoseconds, like it is documented.

Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/cmf.c

index 0df3af1f08ded68b7beaceea80affc1a50978e4f..828b2d334f0a30fde8a687b7ac5587927151aa6f 100644 (file)
@@ -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;