This series implements a generic way to wire up udev module autoprobing to
optional CPU features.

Patch #1 implements the actual generic part. It relies on the include file
<asm/cpufeature.h> to be supplied by the architecture to map CPU features to
the number based scheme used by modalias.

Patch #2 aligns x86 with the generic code. As x86 allows matching on CPU vendor,
family and model IDs, it still retains much of the original code for creating
the module metadata.

Changes since v1:
- squashed into 2 patches, all the generic bits are now added in patch #1 and
  all alignment of the x86 code with the newly introduced generic code is done
  in patch #2
- add more elaborate commit message for patch #1
- added hpa's ack on patch #2

Ard Biesheuvel (2):
  cpu: add generic support for CPU feature based module autoloading
  x86: align x86 arch with generic CPU modalias handling

 arch/x86/Kconfig                  |  4 +--
 arch/x86/include/asm/cpufeature.h |  7 +++++
 arch/x86/kernel/cpu/match.c       | 42 ---------------------------
 drivers/base/Kconfig              |  3 ++
 drivers/base/cpu.c                | 46 ++++++++++++++++++++++++++----
 include/linux/cpu.h               |  7 -----
 include/linux/cpufeature.h        | 60 +++++++++++++++++++++++++++++++++++++++
 include/linux/mod_devicetable.h   |  9 ++++++
 scripts/mod/devicetable-offsets.c |  3 ++
 scripts/mod/file2alias.c          | 20 +++++++++----
 10 files changed, 139 insertions(+), 62 deletions(-)
 create mode 100644 include/linux/cpufeature.h

-- 
1.8.3.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to