Skip to content

Commit

Permalink
Enable P-state software coordination via _PDC
Browse files Browse the repository at this point in the history
http://bugzilla.kernel.org/show_bug.cgi?id=5737

Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
  • Loading branch information
Venkatesh Pallipadi authored and Len Brown committed Feb 9, 2006
1 parent c52851b commit d52bb94
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/i386/kernel/acpi/processor.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ static void init_intel_pdc(struct acpi_processor *pr, struct cpuinfo_x86 *c)
buf[2] = ACPI_PDC_C_CAPABILITY_SMP;

if (cpu_has(c, X86_FEATURE_EST))
buf[2] |= ACPI_PDC_EST_CAPABILITY_SMP;
buf[2] |= ACPI_PDC_EST_CAPABILITY_SWSMP;

obj->type = ACPI_TYPE_BUFFER;
obj->buffer.length = 12;
Expand Down
2 changes: 1 addition & 1 deletion arch/x86_64/kernel/acpi/processor.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ static void init_intel_pdc(struct acpi_processor *pr, struct cpuinfo_x86 *c)

buf[0] = ACPI_PDC_REVISION_ID;
buf[1] = 1;
buf[2] = ACPI_PDC_EST_CAPABILITY_SMP;
buf[2] = ACPI_PDC_EST_CAPABILITY_SWSMP;

obj->type = ACPI_TYPE_BUFFER;
obj->buffer.length = 12;
Expand Down
5 changes: 5 additions & 0 deletions include/acpi/pdc_intel.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
ACPI_PDC_C_C1_HALT | \
ACPI_PDC_P_FFH)

#define ACPI_PDC_EST_CAPABILITY_SWSMP (ACPI_PDC_SMP_C1PT | \
ACPI_PDC_C_C1_HALT | \
ACPI_PDC_SMP_P_SWCOORD | \
ACPI_PDC_P_FFH)

#define ACPI_PDC_C_CAPABILITY_SMP (ACPI_PDC_SMP_C2C3 | \
ACPI_PDC_SMP_C1PT | \
ACPI_PDC_C_C1_HALT)
Expand Down

0 comments on commit d52bb94

Please sign in to comment.