speedstep: Don't supply weak get_cst_entries.

This should be overriden by mobo even if it's no-op override.
weak function in this case would only hide real problems.

Change-Id: I30dd671eb605b490a51153d00ae308c4bdef3d05
Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
Reviewed-on: http://review.coreboot.org/7368
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
Vladimir Serbinenko 2014-11-09 12:59:29 +01:00
parent 351fefc452
commit 8ac29e89b6
15 changed files with 56 additions and 13 deletions

View File

@ -28,19 +28,6 @@
#include <cpu/intel/speedstep.h>
#include <device/device.h>
/**
* @brief Returns c-state entries for this system
*
* This function is usually overwritten in mainboard code.
*
* @return Number of c-states *entries will point to.
*/
int __attribute__((weak)) get_cst_entries(acpi_cstate_t **entries
__attribute__((unused)))
{
return 0;
}
static int determine_total_number_of_cores(void)
{
struct device *cpu;

View File

@ -17,3 +17,4 @@
## Foundation, Inc.
##
ramstage-y += cstates.c

View File

@ -0,0 +1,7 @@
#include <device/device.h>
#include <arch/x86/include/arch/acpigen.h>
int get_cst_entries(acpi_cstate_t **entries)
{
return 0;
}

View File

@ -1 +1,2 @@
ramstage-y += superio_hwm.c
ramstage-y += cstates.c

View File

@ -0,0 +1,7 @@
#include <device/device.h>
#include <arch/x86/include/arch/acpigen.h>
int get_cst_entries(acpi_cstate_t **entries)
{
return 0;
}

View File

@ -0,0 +1 @@
ramstage-y += cstates.c

View File

@ -0,0 +1,7 @@
#include <device/device.h>
#include <arch/x86/include/arch/acpigen.h>
int get_cst_entries(acpi_cstate_t **entries)
{
return 0;
}

View File

@ -0,0 +1 @@
ramstage-y += cstates.c

View File

@ -0,0 +1,7 @@
#include <device/device.h>
#include <arch/x86/include/arch/acpigen.h>
int get_cst_entries(acpi_cstate_t **entries)
{
return 0;
}

View File

@ -0,0 +1 @@
ramstage-y += cstates.c

View File

@ -0,0 +1,7 @@
#include <device/device.h>
#include <arch/x86/include/arch/acpigen.h>
int get_cst_entries(acpi_cstate_t **entries)
{
return 0;
}

View File

@ -0,0 +1 @@
ramstage-y += cstates.c

View File

@ -0,0 +1,7 @@
#include <device/device.h>
#include <arch/x86/include/arch/acpigen.h>
int get_cst_entries(acpi_cstate_t **entries)
{
return 0;
}

View File

@ -18,3 +18,4 @@
##
ramstage-y += m3885.c
ramstage-y += cstates.c

View File

@ -0,0 +1,7 @@
#include <device/device.h>
#include <arch/x86/include/arch/acpigen.h>
int get_cst_entries(acpi_cstate_t **entries)
{
return 0;
}