From 6366d92803fdd43882592263f70ad83114359c64 Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Wed, 4 May 2016 09:00:13 -0500 Subject: {cpu,soc}/intel: remove unused smm_init() function There used to be a need for an empty smm_init() function because initialize_cpus() called it even though nothing called initialize_cpus(). However, garbage collection at link time is implemented so there's no reason to provide an empty function to satisfy a symbol that is completely culled during link. Remove it. Change-Id: Ic13c85f1d3d57e38e7132e4289a98a95829f765a Signed-off-by: Aaron Durbin Reviewed-on: https://review.coreboot.org/14605 Tested-by: build bot (Jenkins) Reviewed-by: Duncan Laurie Reviewed-by: Furquan Shaikh --- src/soc/intel/skylake/smmrelocate.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/soc/intel/skylake/smmrelocate.c') diff --git a/src/soc/intel/skylake/smmrelocate.c b/src/soc/intel/skylake/smmrelocate.c index 0c0806866b..807aaa38ac 100644 --- a/src/soc/intel/skylake/smmrelocate.c +++ b/src/soc/intel/skylake/smmrelocate.c @@ -305,17 +305,6 @@ void smm_relocate(void) smm_initiate_relocation(); } -void smm_init(void) -{ - /* - * smm_init() is normally called from initialize_cpus() in - * lapic_cpu_init.c. However, that path is no longer used. Don't reuse - * the function name because that would cause confusion. - * The smm_initialize() function above is used to setup SMM at the - * appropriate time. - */ -} - void smm_lock(void) { /* -- cgit v1.2.3