mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 04:34:08 +08:00
ACPI fixes for 5.11-rc3
- Drop two local variables that are never read and the code updating their values from the x86 suspend-to-idle code (Rafael Wysocki). - Add empty stub of an ACPI helper function to avoid build issues when CONFIG_ACPI is not set (Shawn Guo). - Remove confusing text regarding modules from Kconfig entries that correspond to non-modular code (Peter Robinson). -----BEGIN PGP SIGNATURE----- iQJGBAABCAAwFiEE4fcc61cGeeHD/fCwgsRv/nhiVHEFAl/4mWQSHHJqd0Byand5 c29ja2kubmV0AAoJEILEb/54YlRxBSIQALV2cZnFoNaL95feCHNcqh5OYUtiC1JL BFFhG3ebyb0DsCY5U3n2Nd2SW7fa9sAaeSbxVLA+A4vegffpog0pGRVM+Z2wPhJ9 DTG8yhN1fLdvrMcj8o/IoWdZEFiPqgTZzolHPwiabak6UNIWg0iWd+MSVEaF4zy4 kdz8BYYtowTBBiUBA4UsYwKEhsBG0zqo9F1oFljLwE2Qlj7P/5E6h2JEgqFAflGT P3NrxYzLNcVsmb9y7PCX7CQIhx48dhCg/NsMMle+hlJSN1LuRfBHBeOW4/ADLXNp 8Qs7Hk267WnsDVObAasQL9lGREsiXbSok/74lWW4epEJnT1w++t57EB0kUSKT9oS VEUKeWzCWpnRohmt/M1QSTgvtcz3HDFIVUVPsC2W0wbYid39rBKuD+whF9d6KBqh UwRp5dZiqdMhT/GPqKep2hS/f6F4phuZSUS2SlCStYaeBLzQ9Mzz1WHFa33MmkVC 1VaZ4YrLaeij91/4Da1psekSDPnuX7JZAiTksSaDUmWS1Xk4Mz2E9F3g4+sC/iUL MOq3Yr5i8rWoSQMmrGCPg1synq8c6ytTl4KDbcOmRFUPDzESzffFR2QbVlJqVP4x wWKYTZVx5hCxYNFUtgXT0JYRLBip3iFEleokg0FdfucKOvUKMu2lwCz9c0ZnbsmZ 5Iz4cPOAG0rC =9ssW -----END PGP SIGNATURE----- Merge tag 'acpi-5.11-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm Pull ACPI fixes from Rafael Wysocki: "These address two build issues and drop confusing text from a couple of Kconfig entries. Specifics: - Drop two local variables that are never read and the code updating their values from the x86 suspend-to-idle code (Rafael Wysocki) - Add empty stub of an ACPI helper function to avoid build issues when CONFIG_ACPI is not set (Shawn Guo) - Remove confusing text regarding modules from Kconfig entries that correspond to non-modular code (Peter Robinson)" * tag 'acpi-5.11-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: ACPI: Update Kconfig help text for items that are no longer modular ACPI: scan: add stub acpi_create_platform_device() for !CONFIG_ACPI ACPI: PM: s2idle: Drop unused local variables and related code
This commit is contained in:
commit
fb9ca0be63
@ -395,9 +395,6 @@ config ACPI_CONTAINER
|
||||
|
||||
This helps support hotplug of nodes, CPUs, and memory.
|
||||
|
||||
To compile this driver as a module, choose M here:
|
||||
the module will be called container.
|
||||
|
||||
config ACPI_HOTPLUG_MEMORY
|
||||
bool "Memory Hotplug"
|
||||
depends on MEMORY_HOTPLUG
|
||||
@ -411,9 +408,6 @@ config ACPI_HOTPLUG_MEMORY
|
||||
removing memory devices at runtime, you need not enable
|
||||
this driver.
|
||||
|
||||
To compile this driver as a module, choose M here:
|
||||
the module will be called acpi_memhotplug.
|
||||
|
||||
config ACPI_HOTPLUG_IOAPIC
|
||||
bool
|
||||
depends on PCI
|
||||
|
@ -105,18 +105,8 @@ static void lpi_device_get_constraints_amd(void)
|
||||
|
||||
for (i = 0; i < out_obj->package.count; i++) {
|
||||
union acpi_object *package = &out_obj->package.elements[i];
|
||||
struct lpi_device_info_amd info = { };
|
||||
|
||||
if (package->type == ACPI_TYPE_INTEGER) {
|
||||
switch (i) {
|
||||
case 0:
|
||||
info.revision = package->integer.value;
|
||||
break;
|
||||
case 1:
|
||||
info.count = package->integer.value;
|
||||
break;
|
||||
}
|
||||
} else if (package->type == ACPI_TYPE_PACKAGE) {
|
||||
if (package->type == ACPI_TYPE_PACKAGE) {
|
||||
lpi_constraints_table = kcalloc(package->package.count,
|
||||
sizeof(*lpi_constraints_table),
|
||||
GFP_KERNEL);
|
||||
@ -135,12 +125,10 @@ static void lpi_device_get_constraints_amd(void)
|
||||
|
||||
for (k = 0; k < info_obj->package.count; ++k) {
|
||||
union acpi_object *obj = &info_obj->package.elements[k];
|
||||
union acpi_object *obj_new;
|
||||
|
||||
list = &lpi_constraints_table[lpi_constraints_table_size];
|
||||
list->min_dstate = -1;
|
||||
|
||||
obj_new = &obj[k];
|
||||
switch (k) {
|
||||
case 0:
|
||||
dev_info.enabled = obj->integer.value;
|
||||
|
@ -885,6 +885,13 @@ static inline int acpi_device_modalias(struct device *dev,
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
static inline struct platform_device *
|
||||
acpi_create_platform_device(struct acpi_device *adev,
|
||||
struct property_entry *properties)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static inline bool acpi_dma_supported(struct acpi_device *adev)
|
||||
{
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user