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)
commit6765cc2ac60f124ffffd0232e095c5ec6eb70d57
treea52bba262de0b68d9fc261e5d51471f0932d6b88
parent8ea55c95c372a7a51fa50cb7c75240bfbe8bd337
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