s390/sclp: get machine once during read scp/cpu info
commit912d70d2755cb9b3144eeed4014580ebc5485ce6
authorCollin Walling <walling@linux.ibm.com>
Tue, 15 Sep 2020 19:44:09 +0000 (15 15:44 -0400)
committerCornelia Huck <cohuck@redhat.com>
Fri, 2 Oct 2020 11:52:49 +0000 (2 13:52 +0200)
treee5513d817bc3c448556b74579fb6931bb8ce3294
parent715ff23ef2c49685da416f0233cd38d72bf4045e
s390/sclp: get machine once during read scp/cpu info

Functions within read scp/cpu info will need access to the machine
state. Let's make a call to retrieve the machine state once and
pass the appropriate data to the respective functions.

Signed-off-by: Collin Walling <walling@linux.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Message-Id: <20200915194416.107460-2-walling@linux.ibm.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
hw/s390x/sclp.c