]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Enable GENERIC_CPU_AUTOPROBE
authorMarcin Nowakowski <marcin.nowakowski@imgtec.com>
Tue, 7 Mar 2017 13:19:56 +0000 (14:19 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 10 Apr 2017 09:56:04 +0000 (11:56 +0200)
commit3877b010b29c39c56a9e3d59e227d98a98f02276
tree7894208bff8853a8a86677c763e4e6b45eeed51f
parente4e5c23b91e2fcdff38913c9c3a9d8756b3a0bba
MIPS: Enable GENERIC_CPU_AUTOPROBE

Add missing macros and methods that are required by
CONFIG_GENERIC_CPU_AUTOPROBE: MAX_CPU_FEATURES, cpu_have_feature(),
cpu_feature().

Also set a default elf platform as currently it is not set for most MIPS
platforms resulting in incorrectly specified modalias values in cpu
autoprobe ("cpu:type:(null):feature:...").

Export 'elf_hwcap' symbol so that it can be accessed from modules that
use module_cpu_feature_match()

Signed-off-by: Marcin Nowakowski <marcin.nowakowski@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/15395/

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/Kconfig
arch/mips/include/asm/cpufeature.h [new file with mode: 0644]
arch/mips/kernel/cpu-probe.c