]> git.baikalelectronics.ru Git - kernel.git/commit
device property: export code duplicating array of property entries
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 3 Feb 2017 01:41:27 +0000 (17:41 -0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 7 Feb 2017 12:21:15 +0000 (13:21 +0100)
commitb31d16bcd174bd150a728e6669e021f29a1a06d2
treec79b81ce9b03bace7a86192d39ab7e7233cda5bf
parenta9e8b75cc6435d4be5e6157509cc0c03cafb90bd
device property: export code duplicating array of property entries

When augmenting ACPI-enumerated devices with additional property data based
on DMI info, a module has often several potential property sets, with only
one being active on a given box. In order to save memory it should be
possible to mark everything and __initdata or __initconst, execute DMI
match early, and duplicate relevant properties. Then kernel will discard
the rest of them.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/property.c
include/linux/property.h