Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3abbd337 authored by Zhao Yakui's avatar Zhao Yakui Committed by Len Brown
Browse files

ACPI: Set _PSD ACPI_PDC_SMP_T_SWCOORD



The ACPI_PDC_SMP_T_SWCOORD bit is set by and OS that is capable of
native ACPI throttling software coordination for mutli-processors
using the _TSD information.

Signed-off-by: default avatarZhao Yakui <yakui.zhao@intel.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent aa629992
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -45,6 +45,12 @@ static void init_intel_pdc(struct acpi_processor *pr)
	buf[0] = ACPI_PDC_REVISION_ID;
	buf[0] = ACPI_PDC_REVISION_ID;
	buf[1] = 1;
	buf[1] = 1;
	buf[2] = ACPI_PDC_EST_CAPABILITY_SMP;
	buf[2] = ACPI_PDC_EST_CAPABILITY_SMP;
	/*
	 * The default of PDC_SMP_T_SWCOORD bit is set for IA64 cpu so
	 * that OSPM is capable of native ACPI throttling software
	 * coordination using BIOS supplied _TSD info.
	 */
	buf[2] |= ACPI_PDC_SMP_T_SWCOORD;


	obj->type = ACPI_TYPE_BUFFER;
	obj->type = ACPI_TYPE_BUFFER;
	obj->buffer.length = 12;
	obj->buffer.length = 12;
+6 −0
Original line number Original line Diff line number Diff line
@@ -46,6 +46,12 @@ static void init_intel_pdc(struct acpi_processor *pr, struct cpuinfo_x86 *c)
	buf[1] = 1;
	buf[1] = 1;
	buf[2] = ACPI_PDC_C_CAPABILITY_SMP;
	buf[2] = ACPI_PDC_C_CAPABILITY_SMP;


	/*
	 * The default of PDC_SMP_T_SWCOORD bit is set for intel x86 cpu so
	 * that OSPM is capable of native ACPI throttling software
	 * coordination using BIOS supplied _TSD info.
	 */
	buf[2] |= ACPI_PDC_SMP_T_SWCOORD;
	if (cpu_has(c, X86_FEATURE_EST))
	if (cpu_has(c, X86_FEATURE_EST))
		buf[2] |= ACPI_PDC_EST_CAPABILITY_SWSMP;
		buf[2] |= ACPI_PDC_EST_CAPABILITY_SWSMP;