diff options
Diffstat (limited to 'arch/s390/kernel/cache.c')
-rw-r--r-- | arch/s390/kernel/cache.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/s390/kernel/cache.c b/arch/s390/kernel/cache.c index bff5e3b6d822..8ba32436effe 100644 --- a/arch/s390/kernel/cache.c +++ b/arch/s390/kernel/cache.c | |||
@@ -138,6 +138,8 @@ int init_cache_level(unsigned int cpu) | |||
138 | union cache_topology ct; | 138 | union cache_topology ct; |
139 | enum cache_type ctype; | 139 | enum cache_type ctype; |
140 | 140 | ||
141 | if (!test_facility(34)) | ||
142 | return -EOPNOTSUPP; | ||
141 | if (!this_cpu_ci) | 143 | if (!this_cpu_ci) |
142 | return -EINVAL; | 144 | return -EINVAL; |
143 | ct.raw = ecag(EXTRACT_TOPOLOGY, 0, 0); | 145 | ct.raw = ecag(EXTRACT_TOPOLOGY, 0, 0); |