linux-arch.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ard Biesheuvel <ard.biesheuvel@linaro.org>
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 <ard.biesheuvel@linaro.org>
Subject: [PATCH v2 0/2] generic CPU feature based udev module autoprobing
Date: Sat,  8 Feb 2014 13:34:08 +0100	[thread overview]
Message-ID: <1391862850-24620-1-git-send-email-ard.biesheuvel@linaro.org> (raw)

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

             reply	other threads:[~2014-02-08 12:34 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-08 12:34 Ard Biesheuvel [this message]
2014-02-08 12:34 ` [PATCH v2 1/2] cpu: add generic support for CPU feature based module autoloading Ard Biesheuvel
2014-02-08 12:34   ` Ard Biesheuvel
2014-02-08 12:34 ` [PATCH v2 2/2] x86: align x86 arch with generic CPU modalias handling Ard Biesheuvel
2014-02-16 14:40 ` [PATCH v2 0/2] generic CPU feature based udev module autoprobing Ard Biesheuvel
2014-02-16 14:40   ` Ard Biesheuvel
2014-02-16 16:39   ` gregkh
2014-02-16 16:39     ` gregkh
2014-02-16 17:11     ` Ard Biesheuvel
2014-02-18 20:49       ` gregkh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1391862850-24620-1-git-send-email-ard.biesheuvel@linaro.org \
    --to=ard.biesheuvel@linaro.org \
    --cc=akpm@linux-foundation.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-arch@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).