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

Configure Feed

Select the types of activity you want to include in your feed.

ACPI: Get throttling info from BIOS only after evaluating _PDC

Previously _PDC was evaluated later, and thus we'd not get
the chance to tell the BIOS that we can suport FixedHW registers (MSRs)
and the BIOS would always ask us to use System I/O access
for throttling.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Signed-off-by: Li Shaohua <shaohua.li@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>

authored by

Zhao Yakui and committed by
Len Brown
0ac3c571 9bcb2721

+6 -6
+6 -6
drivers/acpi/processor_core.c
··· 612 612 request_region(pr->throttling.address, 6, "ACPI CPU throttle"); 613 613 } 614 614 615 - #ifdef CONFIG_CPU_FREQ 616 - acpi_processor_ppc_has_changed(pr); 617 - #endif 618 - acpi_processor_get_throttling_info(pr); 619 - acpi_processor_get_limit_info(pr); 620 - 621 615 return 0; 622 616 } 623 617 ··· 659 665 /* _PDC call should be done before doing anything else (if reqd.). */ 660 666 arch_acpi_processor_init_pdc(pr); 661 667 acpi_processor_set_pdc(pr); 668 + #ifdef CONFIG_CPU_FREQ 669 + acpi_processor_ppc_has_changed(pr); 670 + #endif 671 + acpi_processor_get_throttling_info(pr); 672 + acpi_processor_get_limit_info(pr); 673 + 662 674 663 675 acpi_processor_power_init(pr, device); 664 676