android_kernel_motorola_sm6375/drivers/base
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ard Biesheuvel 67bad2fdb7 cpu: add generic support for CPU feature based module autoloading
This patch adds support for advertising optional CPU features over udev
using the modalias, and for declaring compatibility with/dependency upon
such a feature in a module.

The mapping between feature numbers and actual features should be provided
by the architecture in a file called <asm/cpufeature.h> which exports the
following functions/macros:
- cpu_feature(FEAT), a preprocessor macro that maps token FEAT to a
  numeric index;
- bool cpu_have_feature(n), returning whether this CPU has support for
  feature #n;
- MAX_CPU_FEATURES, an upper bound for 'n' in the previous function.

The feature can then be enabled by setting CONFIG_GENERIC_CPU_AUTOPROBE
for the architecture.

For instance, a module that registers its module init function using

  module_cpu_feature_match(FEAT_X, module_init_function)

will be probed automatically when the CPU's support for the 'FEAT_X'
feature is advertised over udev, and will only allow the module to be
loaded by hand if the 'FEAT_X' feature is supported.

Signed-off-by: Ard Biesheuvel <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2014-02-18 12:38:37 -08:00
..
power drivers/base: delete non-required instances of include <linux/init.h> 2014-02-14 14:31:37 -08:00
regmap drivers/base: delete non-required instances of include <linux/init.h> 2014-02-14 14:31:37 -08:00
attribute_container.c drivers/base: delete non-required instances of include <linux/init.h> 2014-02-14 14:31:37 -08:00
base.h
bus.c
class.c
component.c drivers/base: fix devres handling for master device 2014-02-07 16:45:14 -08:00
container.c
core.c driver core: unexport static function create_syslog_header 2014-02-15 11:38:36 -08:00
cpu.c cpu: add generic support for CPU feature based module autoloading 2014-02-18 12:38:37 -08:00
dd.c
devres.c
devtmpfs.c
dma-buf.c dma-buf: avoid using IS_ERR_OR_NULL 2014-02-07 14:21:09 -08:00
dma-coherent.c
dma-contiguous.c
dma-mapping.c
driver.c
firmware.c
firmware_class.c firmware: use power efficient workqueue for unloading and aborting fw load 2014-02-15 11:31:55 -08:00
hypervisor.c
init.c
isa.c
Kconfig cpu: add generic support for CPU feature based module autoloading 2014-02-18 12:38:37 -08:00
Makefile ACPI and power management updates for 3.14-rc1 2014-01-24 15:51:02 -08:00
map.c
memory.c
module.c
node.c
pinctrl.c
platform.c ACPI / platform: drop redundant ACPI_HANDLE check 2014-02-14 14:06:16 -08:00
reservation.c
soc.c
syscore.c
topology.c drivers/base: delete non-required instances of include <linux/init.h> 2014-02-14 14:31:37 -08:00
transport_class.c