s390/zcrypt: Show load of cards and queues in sysfs
authorHarald Freudenberger <freude@de.ibm.com>
Thu, 7 Jun 2018 13:09:48 +0000 (15:09 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 25 Jun 2018 08:21:17 +0000 (10:21 +0200)
commit4a07750ba8f3f45f0be730f7370c2c21a7491cd7
treea2574011414d613b71333d10cd98f6ec20f3ce62
parentdf80c03831331b6254ae9f16b6a10e672e0919c2
s390/zcrypt: Show load of cards and queues in sysfs

Show the current load value of cards and queues in sysfs.
The load value for each card and queue is maintained by
the zcrypt device driver for dispatching and load
balancing requests over the available devices.

This patch provides the load value to userspace via a
new read only sysfs attribute 'load' per card and queue.

Signed-off-by: Harald Freudenberger <freude@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/crypto/zcrypt_card.c
drivers/s390/crypto/zcrypt_queue.c