s390/cacheinfo: add missing facility check
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Wed, 18 Mar 2015 12:22:00 +0000 (13:22 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 13 Apr 2015 08:46:16 +0000 (10:46 +0200)
commit77bb36e57bbe5586bea29b67ba7f87cfe03610a0
tree585024117ef4acc9a5f5a5c6de5032620e7c39d5
parent1a327ffd3d6a79ed85d53b683c185196060ac3b3
s390/cacheinfo: add missing facility check

Git commit d97d929f06d0 ("s390: move cacheinfo sysfs to generic cacheinfo
infrastructure") removed the general-instructions-extension availability
check before the ecag instruction is executed.
Without this check this may lead to crashes on machines without this facility.
Therefore add the check again where needed.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/cache.c