x86: align x86 arch with generic CPU modalias handling

The x86 CPU feature modalias handling existed before it was reimplemented
generically. This patch aligns the x86 handling so that it
(a) reuses some more code that is now generic;
(b) uses the generic format for the modalias module metadata entry, i.e., it
    now uses 'cpu:type:x86,venVVVVfamFFFFmodMMMM:feature:,XXXX,YYYY' instead of
    the 'x86cpu:vendor:VVVV👪FFFF:model:MMMM:feature:,XXXX,YYYY' that was
    used before.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Acked-by: H. Peter Anvin <hpa@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Ard Biesheuvel
2014-02-08 13:34:10 +01:00
committed by Greg Kroah-Hartman
parent 67bad2fdb7
commit 2b9c1f0327
7 changed files with 16 additions and 69 deletions

View File

@@ -185,13 +185,8 @@ config GENERIC_CPU_DEVICES
bool
default n
config HAVE_CPU_AUTOPROBE
def_bool ARCH_HAS_CPU_AUTOPROBE
config GENERIC_CPU_AUTOPROBE
bool
depends on !ARCH_HAS_CPU_AUTOPROBE
select HAVE_CPU_AUTOPROBE
config SOC_BUS
bool