lkml.org 
[lkml]   [2011]   [Feb]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[068/272] [S390] zcrypt: Fix check to look for facility bits 2 & 65
    2.6.37-stable review patch.  If anyone has any objections, please let us know.

    ------------------

    From: Felix Beck <felix.beck@de.ibm.com>

    commit 53ec24b1e6c7118a127cf029a1519a2ce55268ec upstream.

    Fix the check for ap interupts to look for facility bits 2 and 65.
    Make sure that we only register interrupts for aps, if the machine
    has ap interrupt support.

    This patch is relevant only for the 2.6.37 stable series.

    Signed-off-by: Felix Beck <felix.beck@de.ibm.com>
    Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    drivers/s390/crypto/ap_bus.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/drivers/s390/crypto/ap_bus.c
    +++ b/drivers/s390/crypto/ap_bus.c
    @@ -154,7 +154,7 @@ static inline int ap_instructions_availa
    */
    static int ap_interrupts_available(void)
    {
    - return test_facility(1) && test_facility(2);
    + return test_facility(2) && test_facility(65);
    }

    /**



    \
     
     \ /
      Last update: 2011-02-16 02:43    [W:0.020 / U:0.036 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site