From 7a841823ef71b49142c4bb26d8cc70104fd70337 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Fri, 8 Jul 2016 11:35:45 +0300 Subject: [PATCH] UPSTREAM: AMD k8 fam10: Drop excessive spinlock initialization If CAR migration operations unintentionally set the lock, BSP would have got stuck on printk() calls above already. Change-Id: I35155ebcb00475a0964fc639ee74ad2755127740 Signed-off-by: Kysti Mlkki Reviewed-on: https://review.coreboot.org/15589 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin Tested-by: Raptor Engineering Automated Test Stand Reviewed-on: https://chromium-review.googlesource.com/359543 Commit-Ready: Furquan Shaikh Tested-by: Furquan Shaikh --- src/cpu/amd/car/post_cache_as_ram.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/cpu/amd/car/post_cache_as_ram.c b/src/cpu/amd/car/post_cache_as_ram.c index b5faa77db2..9cf3c6e78f 100644 --- a/src/cpu/amd/car/post_cache_as_ram.c +++ b/src/cpu/amd/car/post_cache_as_ram.c @@ -94,13 +94,6 @@ static void prepare_ramstage_region(int s3resume) memset_((void*)0, 0, CONFIG_RAMTOP - backup_top); } -#if IS_ENABLED(CONFIG_HAVE_ROMSTAGE_CONSOLE_SPINLOCK) - initialize_romstage_console_lock(); -#endif -#if IS_ENABLED(CONFIG_HAVE_ROMSTAGE_NVRAM_CBFS_SPINLOCK) - initialize_romstage_nvram_cbfs_lock(); -#endif - print_car_debug(" Done\n"); }