Rework ACPI CST table generation
... in order to unify the Sandybridge and Lenovo implementations currently used in the tree. - use acpi_addr_t in acpigen_write_register() - use acpi_cstate_t for cstate tables (and fix up the x60 and t60) - drop cst_entry from acpigen.h Change-Id: Icb87418d44d355f607c4a67300107b40f40b3b3f Signed-off-by: Stefan Reinauer <reinauer@google.com> Reviewed-on: http://review.coreboot.org/943 Tested-by: build bot (Jenkins) Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
This commit is contained in:
@@ -3,4 +3,4 @@ driver-y += model_fxx_init.c
|
||||
ramstage-y += apic_timer.c
|
||||
ramstage-y += model_fxx_update_microcode.c
|
||||
ramstage-y += processor_name.c
|
||||
ramstage-y += powernow_acpi.c
|
||||
ramstage-$(CONFIG_GENERATE_ACPI_TABLES) += powernow_acpi.c
|
||||
|
@@ -62,7 +62,7 @@ static int get_fsb(void)
|
||||
return 200;
|
||||
}
|
||||
|
||||
int __attribute__((weak)) get_cst_entries(struct cst_entry **entries __attribute__((unused)))
|
||||
int __attribute__((weak)) get_cst_entries(acpi_cstate_t **entries __attribute__((unused)))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
@@ -76,7 +76,7 @@ void generate_cpu_entries(void)
|
||||
int cores_per_package = (cpuid_ebx(1)>>16) & 0xff;
|
||||
int numcpus = totalcores/cores_per_package; // this assumes that all CPUs share the same layout
|
||||
int count;
|
||||
struct cst_entry *cst_entries;
|
||||
acpi_cstate_t *cst_entries;
|
||||
|
||||
printk(BIOS_DEBUG, "Found %d CPU(s) with %d core(s) each.\n", numcpus, cores_per_package);
|
||||
|
||||
|
Reference in New Issue
Block a user