From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ard Biesheuvel Subject: [PATCH v2 0/2] generic CPU feature based udev module autoprobing Date: Sat, 8 Feb 2014 13:34:08 +0100 Message-ID: <1391862850-24620-1-git-send-email-ard.biesheuvel@linaro.org> Return-path: Received: from mail-wi0-f178.google.com ([209.85.212.178]:59588 "EHLO mail-wi0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750957AbaBHMeT (ORCPT ); Sat, 8 Feb 2014 07:34:19 -0500 Received: by mail-wi0-f178.google.com with SMTP id cc10so1582089wib.17 for ; Sat, 08 Feb 2014 04:34:18 -0800 (PST) Sender: linux-arch-owner@vger.kernel.org List-ID: To: linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, akpm@linux-foundation.org, linux-arch@vger.kernel.org Cc: torvalds@linux-foundation.org, Ard Biesheuvel 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 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