s390/sclp: detect conditional-external-interception facility
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Tue, 24 Nov 2015 12:00:23 +0000 (13:00 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 10 Jun 2016 10:07:22 +0000 (12:07 +0200)
Let's detect if we have that facility.

Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/include/asm/sclp.h
drivers/s390/char/sclp_early.c

index ef1f427ad4d1a752a24ac0a36f7f5f0039ee199d..c91ad198a59c8ae45b6c01026e9d033eb2144ba9 100644 (file)
@@ -41,7 +41,8 @@ struct sclp_core_entry {
        u8 reserved2[3];
        u8 : 2;
        u8 ib : 1;
-       u8 : 5;
+       u8 cei : 1;
+       u8 : 4;
        u8 reserved3[6];
        u8 type;
        u8 reserved1;
@@ -69,6 +70,7 @@ struct sclp_info {
        unsigned char has_cmma : 1;
        unsigned char has_gsls : 1;
        unsigned char has_ib : 1;
+       unsigned char has_cei : 1;
        unsigned int ibc;
        unsigned int mtid;
        unsigned int mtid_cp;
index 2240b615131e8a534f84b1b275fd1b1fae52140b..4b330fbd4f087fe9f89f632edfd91bd4a1d20819 100644 (file)
@@ -150,6 +150,7 @@ static void __init sclp_facilities_detect(struct read_info_sccb *sccb)
                sclp.has_sief2 = cpue->sief2;
                sclp.has_gpere = cpue->gpere;
                sclp.has_ib = cpue->ib;
+               sclp.has_cei = cpue->cei;
                break;
        }