mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
Fixes:
* Compile warnings and errors (one on x86, two on ARM) * WARNING in xen-pciback * Use the acpi_processor_get_performance_info instead of the 'register' version -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.13 (GNU/Linux) iQEcBAABAgAGBQJRP33uAAoJEFjIrFwIi8fJfxMIAJxK7jI7NghJ87b8uk3IrkDl VDsY5Re86XWE0HjsFDJXfWZCGumhpMb8hI1RJBavLDWQmk4THBqsKbx9rDgRZUJO HepvhwD/RdK+nnjVmbAzJKuc7aOKQmeEW3Weysb32DW9C5Wg27LRrto/oVJIUsyj 4HrLcsZZqCiEYUZjGwrkrMC1yXx+2XvkX9mXq81hGj0xU4X1hMizwBAJvSE5lKca r4LaCoZ0SuayHYHjEtxyjAcu39wnMdlCkdW9DUlqrjK7L3X29ifVvnb+aS951O5E t57DCHY8WkI1BkaoHaAQqI7/Y1HpYbT8BALVmxXoIInI9lc8VLHZOs8/fVVDppQ= =MxoB -----END PGP SIGNATURE----- Merge tag 'stable/for-linus-3.9-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen Pull Xen fixes from Konrad Rzeszutek Wilk: - Compile warnings and errors (one on x86, two on ARM) - WARNING in xen-pciback - Use the acpi_processor_get_performance_info instead of the 'register' version * tag 'stable/for-linus-3.9-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen: xen/acpi: remove redundant acpi/acpi_drivers.h include xen: arm: mandate EABI and use generic atomic operations. acpi: Export the acpi_processor_get_performance_info xen/pciback: Don't disable a PCI device that is already disabled.
This commit is contained in:
commit
7946844ae8
7 changed files with 17 additions and 30 deletions
|
|
@ -500,16 +500,16 @@ static int __init xen_acpi_processor_init(void)
|
|||
(void)acpi_processor_preregister_performance(acpi_perf_data);
|
||||
|
||||
for_each_possible_cpu(i) {
|
||||
struct acpi_processor *pr;
|
||||
struct acpi_processor_performance *perf;
|
||||
|
||||
pr = per_cpu(processors, i);
|
||||
perf = per_cpu_ptr(acpi_perf_data, i);
|
||||
rc = acpi_processor_register_performance(perf, i);
|
||||
pr->performance = perf;
|
||||
rc = acpi_processor_get_performance_info(pr);
|
||||
if (rc)
|
||||
goto err_out;
|
||||
}
|
||||
rc = acpi_processor_notify_smm(THIS_MODULE);
|
||||
if (rc)
|
||||
goto err_unregister;
|
||||
|
||||
for_each_possible_cpu(i) {
|
||||
struct acpi_processor *_pr;
|
||||
|
|
|
|||
|
|
@ -113,7 +113,8 @@ void xen_pcibk_reset_device(struct pci_dev *dev)
|
|||
if (dev->msi_enabled)
|
||||
pci_disable_msi(dev);
|
||||
#endif
|
||||
pci_disable_device(dev);
|
||||
if (pci_is_enabled(dev))
|
||||
pci_disable_device(dev);
|
||||
|
||||
pci_write_config_word(dev, PCI_COMMAND, 0);
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@
|
|||
#include <linux/export.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/acpi.h>
|
||||
#include <acpi/acpi_drivers.h>
|
||||
#include <xen/acpi.h>
|
||||
|
||||
#ifdef CONFIG_ACPI
|
||||
|
|
|
|||
Loading…
Reference in a new issue