]> git.karo-electronics.de Git - karo-tx-linux.git/commit
s390: Make cpc_name accessible
authorJanosch Frank <frankja@linux.vnet.ibm.com>
Mon, 8 Feb 2016 12:36:22 +0000 (13:36 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 10 Jun 2016 10:07:10 +0000 (12:07 +0200)
commite435dc31398e63b992639cf62024d959219db191
tree266ec7dd5870676e7c82d57db237dc2d03e353f1
parente65f30e0cb29694c4241bd9c96ea9413938fcec5
s390: Make cpc_name accessible

sclp_ocf.c is the only way to get the cpc name, as it registers the
sole event handler for the ocf event. By creating a new global
function that copies that name, we make it accessible to the world
which longs to retrieve it.

Additionally we now also store the cpc name as EBCDIC, so we don't
have to convert it to and from ASCII if it is requested in native
encoding.

Signed-off-by: Janosch Frank <frankja@linux.vnet.ibm.com>
Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Acked-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/include/asm/sclp.h
drivers/s390/char/sclp_ocf.c