History

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

Linus Torvalds committed 5 years ago

Commit fb9ca0b2 parents be31d94 24e8ab63 files · +8 −19Browse files

Unified · Split

3 files
  1. drivers/acpi/Kconfig +0 −6
  2. drivers/acpi/x86/s2idle.c +1 −13
  3. include/linux/acpi.h +7 −0
drivers/acpi/Kconfig+0−6
@@ -395,9 +395,6 @@ config ACPI_CONTAINER · 394 unmodified lines
395395
396396 This helps support hotplug of nodes, CPUs, and memory.
397397
398− To compile this driver as a module, choose M here:
399− the module will be called container.
400−
401398 config ACPI_HOTPLUG_MEMORY
402399 bool "Memory Hotplug"
403400 depends on MEMORY_HOTPLUG
@@ -411,9 +408,6 @@ config ACPI_HOTPLUG_MEMORY · 7 unmodified lines
411408 removing memory devices at runtime, you need not enable
412409 this driver.
413410
414− To compile this driver as a module, choose M here:
415− the module will be called acpi_memhotplug.
416−
417411 config ACPI_HOTPLUG_IOAPIC
418412 bool
419413 depends on PCI
drivers/acpi/x86/s2idle.c+1−13
@@ -105,18 +105,8 @@ static void lpi_device_get_constraints_amd(void) · 104 unmodified lines
105105
106106 for (i = 0; i < out_obj->package.count; i++) {
107107 union acpi_object *package = &out_obj->package.elements[i];
108− struct lpi_device_info_amd info = { };
109108
110− if (package->type == ACPI_TYPE_INTEGER) {
111− switch (i) {
112− case 0:
113− info.revision = package->integer.value;
114− break;
115− case 1:
116− info.count = package->integer.value;
117− break;
118− }
119− } else if (package->type == ACPI_TYPE_PACKAGE) {
109+ if (package->type == ACPI_TYPE_PACKAGE) {
120110 lpi_constraints_table = kcalloc(package->package.count,
121111 sizeof(*lpi_constraints_table),
122112 GFP_KERNEL);
@@ -135,12 +125,10 @@ static void lpi_device_get_constraints_amd(void) · 12 unmodified lines
135125
136126 for (k = 0; k < info_obj->package.count; ++k) {
137127 union acpi_object *obj = &info_obj->package.elements[k];
138− union acpi_object *obj_new;
139128
140129 list = &lpi_constraints_table[lpi_constraints_table_size];
141130 list->min_dstate = -1;
142131
143− obj_new = &obj[k];
144132 switch (k) {
145133 case 0:
146134 dev_info.enabled = obj->integer.value;
include/linux/acpi.h+7−0
@@ -885,6 +885,13 @@ static inline int acpi_device_modalias(struct device *dev, · 884 unmodified lines
885885 return -ENODEV;
886886 }
887887
888+static inline struct platform_device *
889+acpi_create_platform_device(struct acpi_device *adev,
890+ struct property_entry *properties)
891+{
892+ return NULL;
893+}
894+
888895 static inline bool acpi_dma_supported(struct acpi_device *adev)
889896 {
890897 return false;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t