]> git.baikalelectronics.ru Git - kernel.git/commit
s390/dasd: cleanup profiling
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Wed, 28 Jan 2015 18:06:29 +0000 (19:06 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 29 Jan 2015 08:19:29 +0000 (09:19 +0100)
commita6e2db33d0231b266730d74be0fc3922e4d6d205
treea52bba262de0b68d9fc261e5d51471f0932d6b88
parent524dcb3abd11d7c1535c4da43e89090f93952e29
s390/dasd: cleanup profiling

The dasd driver has a lot of duplicated code to handle
dasd_global_profile. With this patch we use the same code for the
global and the per device profiling data. Note that dasd_stats_write
had to change slightly to maintain some odd differences between
A) per device and global profile and B) proc and sysfs interface
usage.

Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Reviewed-by: Stefan Haberland <stefan.haberland@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/block/dasd.c
drivers/s390/block/dasd_int.h
drivers/s390/block/dasd_proc.c