diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2016-03-31 09:55:17 +0200 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2017-02-08 14:13:24 +0100 |
commit | 2583b848cad049cf5f3f0a03af8b140668b376f3 (patch) | |
tree | 5d7c86c4b29d9609b4f46bef97e38360d0a1e19e /arch/s390/kernel/setup.c | |
parent | 4920e3cf77347d7d7373552d4839e8d832321313 (diff) | |
download | blackbird-op-linux-2583b848cad049cf5f3f0a03af8b140668b376f3.tar.gz blackbird-op-linux-2583b848cad049cf5f3f0a03af8b140668b376f3.zip |
s390: report new vector facilities
Add hardware capability bits and feature tags to /proc/cpuinfo for
the "Vector Packed Decimal Facility" (tag "vxd" / hwcap bit 2^12)
and the "Vector Enhancements Facility 1" (tag "vxe" / hwcap bit 2^13).
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kernel/setup.c')
-rw-r--r-- | arch/s390/kernel/setup.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/s390/kernel/setup.c b/arch/s390/kernel/setup.c index f92c78277680..8d59f20a658f 100644 --- a/arch/s390/kernel/setup.c +++ b/arch/s390/kernel/setup.c @@ -769,8 +769,14 @@ static int __init setup_hwcaps(void) * can be disabled with the "novx" parameter. Use MACHINE_HAS_VX * instead of facility bit 129. */ - if (MACHINE_HAS_VX) + if (MACHINE_HAS_VX) { elf_hwcap |= HWCAP_S390_VXRS; + if (test_facility(134)) + elf_hwcap |= HWCAP_S390_VXRS_EXT; + if (test_facility(135)) + elf_hwcap |= HWCAP_S390_VXRS_BCD; + } + get_cpu_id(&cpu_id); add_device_randomness(&cpu_id, sizeof(cpu_id)); switch (cpu_id.machine) { |