Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge branches 'acpi-apei', 'acpi-misc' and 'acpi-processor'

* acpi-apei:
ACPI, APEI: make apei_resources_all static

* acpi-misc:
ACPI: acpi_drivers.h: Update the kernel doc
ACPI: acpi_drivers.h: Remove the leftover dead code
ACPI: tiny-power-button: Simplify the code using module_acpi_driver()
ACPI: SBS: Simplify the code using module_acpi_driver()
ACPI: SBS: Simplify the driver init code
ACPI: debug: Remove the not used function
ACPI: processor: Remove the duplicated ACPI_PROCESSOR_CLASS macro

* acpi-processor:
ACPI: processor: Drop duplicate setting of shared_cpu_map

+5 -50
-7
drivers/acpi/acpi_dbg.c
··· 117 117 return false; 118 118 } 119 119 120 - static inline bool __acpi_aml_opened(void) 121 - { 122 - if (acpi_aml_io.flags & ACPI_AML_OPEN) 123 - return true; 124 - return false; 125 - } 126 - 127 120 static inline bool __acpi_aml_used(void) 128 121 { 129 122 return acpi_aml_io.usages ? true : false;
+1 -1
drivers/acpi/apei/apei-base.c
··· 287 287 }; 288 288 289 289 /* Collect all resources requested, to avoid conflict */ 290 - struct apei_resources apei_resources_all = { 290 + static struct apei_resources apei_resources_all = { 291 291 .iomem = LIST_HEAD_INIT(apei_resources_all.iomem), 292 292 .ioport = LIST_HEAD_INIT(apei_resources_all.ioport), 293 293 };
-1
drivers/acpi/processor_idle.c
··· 31 31 #include <asm/apic.h> 32 32 #endif 33 33 34 - #define ACPI_PROCESSOR_CLASS "processor" 35 34 #define _COMPONENT ACPI_PROCESSOR_COMPONENT 36 35 ACPI_MODULE_NAME("processor_idle"); 37 36
-2
drivers/acpi/processor_perflib.c
··· 22 22 23 23 #define PREFIX "ACPI: " 24 24 25 - #define ACPI_PROCESSOR_CLASS "processor" 26 25 #define ACPI_PROCESSOR_FILE_PERFORMANCE "performance" 27 26 #define _COMPONENT ACPI_PROCESSOR_COMPONENT 28 27 ACPI_MODULE_NAME("processor_perflib"); ··· 615 616 continue; 616 617 617 618 pr->performance = per_cpu_ptr(performance, i); 618 - cpumask_set_cpu(i, pr->performance->shared_cpu_map); 619 619 pdomain = &(pr->performance->domain_info); 620 620 if (acpi_processor_get_psd(pr->handle, pdomain)) { 621 621 retval = -EINVAL;
-2
drivers/acpi/processor_thermal.c
··· 19 19 20 20 #define PREFIX "ACPI: " 21 21 22 - #define ACPI_PROCESSOR_CLASS "processor" 23 - 24 22 #ifdef CONFIG_CPU_FREQ 25 23 26 24 /* If a passive cooling situation is detected, primarily CPUfreq is used, as it
-1
drivers/acpi/processor_throttling.c
··· 22 22 23 23 #define PREFIX "ACPI: " 24 24 25 - #define ACPI_PROCESSOR_CLASS "processor" 26 25 #define _COMPONENT ACPI_PROCESSOR_COMPONENT 27 26 ACPI_MODULE_NAME("processor_throttling"); 28 27
+1 -23
drivers/acpi/sbs.c
··· 711 711 }, 712 712 .drv.pm = &acpi_sbs_pm, 713 713 }; 714 - 715 - static int __init acpi_sbs_init(void) 716 - { 717 - int result = 0; 718 - 719 - if (acpi_disabled) 720 - return -ENODEV; 721 - 722 - result = acpi_bus_register_driver(&acpi_sbs_driver); 723 - if (result < 0) 724 - return -ENODEV; 725 - 726 - return 0; 727 - } 728 - 729 - static void __exit acpi_sbs_exit(void) 730 - { 731 - acpi_bus_unregister_driver(&acpi_sbs_driver); 732 - return; 733 - } 734 - 735 - module_init(acpi_sbs_init); 736 - module_exit(acpi_sbs_exit); 714 + module_acpi_driver(acpi_sbs_driver);
+1 -3
drivers/acpi/tiny-power-button.c
··· 40 40 }, 41 41 }; 42 42 43 - module_driver(acpi_tiny_power_button_driver, 44 - acpi_bus_register_driver, 45 - acpi_bus_unregister_driver); 43 + module_acpi_driver(acpi_tiny_power_button_driver);
+2 -10
include/acpi/acpi_drivers.h
··· 64 64 -------------------------------------------------------------------------- */ 65 65 66 66 67 - /* ACPI PCI Interrupt Link (pci_link.c) */ 67 + /* ACPI PCI Interrupt Link */ 68 68 69 69 int acpi_irq_penalty_init(void); 70 70 int acpi_pci_link_allocate_irq(acpi_handle handle, int index, int *triggering, 71 71 int *polarity, char **name); 72 72 int acpi_pci_link_free_irq(acpi_handle handle); 73 73 74 - /* ACPI PCI Device Binding (pci_bind.c) */ 74 + /* ACPI PCI Device Binding */ 75 75 76 76 struct pci_bus; 77 77 ··· 93 93 #else 94 94 static inline void pci_acpi_crs_quirks(void) { } 95 95 #endif 96 - 97 - /* -------------------------------------------------------------------------- 98 - Processor 99 - -------------------------------------------------------------------------- */ 100 - 101 - #define ACPI_PROCESSOR_LIMIT_NONE 0x00 102 - #define ACPI_PROCESSOR_LIMIT_INCREMENT 0x01 103 - #define ACPI_PROCESSOR_LIMIT_DECREMENT 0x02 104 96 105 97 /*-------------------------------------------------------------------------- 106 98 Dock Station