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
..
accessibility
acpi
Merge branches 'acpi-dock', 'acpi-scan' and 'acpi-pci-hotplug'
2014-02-12 14:56:58 +01:00
amba
ata
atm
auxdisplay
base
cpu: add generic support for CPU feature based module autoloading
2014-02-18 12:38:37 -08:00
bcma
block
Merge branch 'for-linus' of git://git.kernel.dk/linux-block
2014-02-14 10:45:18 -08:00
bluetooth
bus
cdrom
char
Char/Misc fixes for 3.14-rc3
2014-02-14 16:13:00 -08:00
clk
clocksource
clocksource: Kona: Print warning rather than panic
2014-02-06 16:01:40 +01:00
connector
cpufreq
intel_pstate: Remove energy reporting from pstate_sample tracepoint
2014-02-13 02:11:18 +01:00
cpuidle
crypto
crypto/nx/nx-842: Fix handling of vmalloc addresses
2014-02-11 11:24:49 +11:00
dca
devfreq
dio
dma
dma: mv_xor: Silence a bunch of LPAE-related warnings
2014-02-12 16:21:17 -08:00
edac
EDAC: Correct workqueue setup path
2014-02-14 10:40:47 +01:00
eisa
extcon
firewire
firmware
firmware: google memconsole driver fixes
2014-02-15 11:30:28 -08:00
fmc
gpio
gpu
Merge 3.14-rc3 into driver-core-next
2014-02-18 08:57:10 -08:00
hid
hsi
hv
Drivers: hv: vmbus: Don't timeout during the initial connection with host
2014-02-07 08:27:34 -08:00
hwmon
hwmon: (ntc_thermistor) Avoid math overflow
2014-02-13 19:43:52 -08:00
hwspinlock
i2c
i2c: mv64xxx: refactor message start to ensure proper initialization
2014-02-15 15:42:31 +01:00
ide
idle
iio
iio: max1363: Use devm_regulator_get_optional for optional regulator
2014-02-08 11:46:00 +00:00
infiniband
Merge git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending
2014-02-15 16:18:47 -08:00
input
iommu
ipack
irqchip
Merge branch 'irq-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
2014-02-05 16:02:53 -08:00
isdn
isdn/hisax: hex vs decimal typo in prfeatureind()
2014-02-06 21:18:06 -08:00
leds
lguest
macintosh
mailbox
md
Two bugfixes for md
2014-02-14 12:48:16 -08:00
media
Merge branch 'master' into driver-core-next-test-merge-rc2
2014-02-10 19:34:30 -05:00
memory
memstick
message
drivers/message/i2o/i2o_config.c: fix deadlock in compat_ioctl(I2OGETIOPS)
2014-02-10 16:01:40 -08:00
mfd
misc
Char/Misc fixes for 3.14-rc3
2014-02-14 16:13:00 -08:00
mmc
mtd
net
RDMA/InfiniBand fixes for 3.14-rc3:
2014-02-14 10:33:45 -08:00
nfc
ntb
nubus
of
of: search the best compatible match first in __of_match_node()
2014-02-15 18:51:17 -06:00
oprofile
parisc
parport
pci
Merge 3.14-rc3 into driver-core-next
2014-02-18 08:57:10 -08:00
pcmcia
phy
pinctrl
pinctrl: tegra: return correct error type
2014-02-06 14:21:19 +01:00
platform
pnp
power
Few fixes:
2014-02-14 10:32:28 -08:00
powercap
pps
ps3
ptp
pwm
rapidio
regulator
Merge remote-tracking branches 'regulator/fix/da9055' and 'regulator/fix/max14577' into regulator-linus
2014-02-12 11:47:33 +00:00
remoteproc
reset
rpmsg
rtc
s390
Merge 3.14-rc3 into driver-core-next
2014-02-18 08:57:10 -08:00
sbus
scsi
Merge 3.14-rc3 into driver-core-next
2014-02-18 08:57:10 -08:00
sfi
sh
sn
spi
Merge remote-tracking branches 'spi/fix/doc', 'spi/fix/nuc900' and 'spi/fix/rspi' into spi-linus
2014-02-11 12:08:27 +00:00
ssb
staging
Staging driver fixes for 3.14-rc3
2014-02-14 16:14:11 -08:00
target
Target/sbc: Fix protection copy routine
2014-02-12 15:14:45 -08:00
tc
thermal
tty
vt: Fix secure clear screen
2014-02-13 11:12:00 -08:00
uio
usb
usb: option: blacklist ZTE MF667 net interface
2014-02-11 15:33:54 -08:00
uwb
vfio
vhost
video
video: Kconfig: Allow more broad selection of the imxfb framebuffer driver.
2014-02-14 10:44:52 +02:00
virt
virtio
vlynq
vme
VME: Correct read/write alignment algorithm
2014-02-07 08:16:14 -08:00
w1
watchdog
watchdog: dw_wdt: Add dependency on HAS_IOMEM
2014-02-08 09:47:11 +01:00
xen
Bug-fix:
2014-02-12 12:28:05 -08:00
zorro
Kconfig
Makefile