s390/sclp: cache the sclp device
authorChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 10 Aug 2016 10:14:19 +0000 (12:14 +0200)
committerCornelia Huck <cornelia.huck@de.ibm.com>
Mon, 5 Sep 2016 13:15:16 +0000 (15:15 +0200)
commit989fd865f5e306a0b1ff10713a678b1fc4cab08f
tree6835da8f271986f3ac1b67e38387080eb40edc3b
parent0c2a16a4dc56fbdbe7f619e2a860214dc6f89ec6
s390/sclp: cache the sclp device

With the current code a simple sclp command takes about 13000 ns
The biggest part seems to be the resolver of the object model. By
caching the sclp device the time for an sclp command goes down to
2500ns. Talking about real life scenarios, this change doubles
the speed of the sclp console when sending single bytes outputs
to /dev/console.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
hw/s390x/sclp.c