/* * Contains CPU feature definitions * * Copyright (C) 2015 ARM Ltd. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */#define pr_fmt(fmt) "CPU features: " fmt#include<linux/bsearch.h>#include<linux/cpumask.h>#include<linux/sort.h>#include<linux/stop_machine.h>#include<linux/types.h>#include<linux/mm.h>#include<asm/cpu.h>#include<asm/cpufeature.h>#include<asm/cpu_ops.h>#include<asm/fpsimd.h>#include<asm/mmu_context.h>#include<asm/processor.h>#include<asm/sysreg.h>#include<asm/traps.h>#include<asm/virt.h>unsignedlongelf_hwcap__read_mostly;EXPORT_SYMBOL_GPL(elf_hwcap);#ifdef CONFIG_COMPAT#define COMPAT_ELF_HWCAP_DEFAULT \ (COMPAT_HWCAP_HALF|COMPAT_HWCAP_THUMB|\ COMPAT_HWCAP_FAST_MULT|COMPAT_HWCAP_EDSP|\ COMPAT_HWCAP_TLS|COMPAT_HWCAP_VFP|\ COMPAT_HWCAP_VFPv3|COMPAT_HWCAP_VFPv4|\ COMPAT_HWCAP_NEON|COMPAT