OSDN Git Service

[S390] zcrypt: Fix check to look for facility bits 2 & 65
authorFelix Beck <felix.beck@de.ibm.com>
Wed, 5 Jan 2011 11:46:44 +0000 (12:46 +0100)
committerMartin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com>
Wed, 5 Jan 2011 11:46:52 +0000 (12:46 +0100)
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.

Cc: stable@kernel.org
Signed-off-by: Felix Beck <felix.beck@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/crypto/ap_bus.c

index 8fd8c62..a1ba52a 100644 (file)
@@ -154,7 +154,7 @@ static inline int ap_instructions_available(void)
  */
 static int ap_interrupts_available(void)
 {
-       return test_facility(1) && test_facility(2);
+       return test_facility(2) && test_facility(65);
 }
 
 /**