From 8d846135ff0779b19eccef0bbb15ddfe366205c6 Mon Sep 17 00:00:00 2001 From: Sven Schnelle Date: Fri, 23 Dec 2011 10:29:09 +0100 Subject: [PATCH] ACPI: mark empty get_cst_entries() weak This function prevents the linker from choosing the right get_cst_entries(), preventing writing the _CST tables. Change-Id: I4bc0168aee110171faeaa081f217dfd1536bb821 Signed-off-by: Sven Schnelle Signed-off-by: Patrick Georgi Reviewed-on: http://review.coreboot.org/496 Tested-by: build bot (Jenkins) --- src/arch/x86/include/arch/acpigen.h | 2 +- src/cpu/intel/speedstep/acpi.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/arch/x86/include/arch/acpigen.h b/src/arch/x86/include/arch/acpigen.h index 0833371d83..9dc9675bd6 100644 --- a/src/arch/x86/include/arch/acpigen.h +++ b/src/arch/x86/include/arch/acpigen.h @@ -66,6 +66,6 @@ int acpigen_write_resourcetemplate_footer(int len); int acpigen_write_mainboard_resource_template(void); int acpigen_write_mainboard_resources(const char *scope, const char *name); -int get_cst_entries(struct cst_entry **) __attribute__((weak)); +int get_cst_entries(struct cst_entry **); #endif diff --git a/src/cpu/intel/speedstep/acpi.c b/src/cpu/intel/speedstep/acpi.c index 8f32e4f630..00c4ae937c 100644 --- a/src/cpu/intel/speedstep/acpi.c +++ b/src/cpu/intel/speedstep/acpi.c @@ -62,7 +62,7 @@ static int get_fsb(void) return 200; } -int get_cst_entries(struct cst_entry **entries __attribute__((unused))) +int __attribute__((weak)) get_cst_entries(struct cst_entry **entries __attribute__((unused))) { return 0; }