summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2019-11-20 22:10:05 +0100
committerPatrick Georgi <pgeorgi@google.com>2019-11-29 09:21:56 +0000
commit4e223db66cb19febe15f4dbf2700704fdb2fb0db (patch)
tree3ce20a1a7b1328074f425f6402dfc5aea34b5ca8 /src
parent9e1ea54b1859ab24a073eb981aa5163b5f2b0cfd (diff)
downloadcoreboot-4e223db66cb19febe15f4dbf2700704fdb2fb0db.tar.xz
cpu/x86/tsc/delay_tsc.c: Drop CAR_GLOBAL_MIGRATION support
Change-Id: I0a1e9fcea54444a84cc0a6ac30fe7d053261bb1c Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/37049 Reviewed-by: Patrick Georgi <pgeorgi@google.com> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r--src/cpu/x86/tsc/delay_tsc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cpu/x86/tsc/delay_tsc.c b/src/cpu/x86/tsc/delay_tsc.c
index 7aa887ae63..fe6ae5b78e 100644
--- a/src/cpu/x86/tsc/delay_tsc.c
+++ b/src/cpu/x86/tsc/delay_tsc.c
@@ -11,7 +11,6 @@
* GNU General Public License for more details.
*/
-#include <arch/early_variables.h>
#include <cpu/x86/tsc.h>
#include <pc80/i8254.h>
#include <smp/spinlock.h>
@@ -49,11 +48,11 @@ static struct monotonic_counter {
int initialized;
struct mono_time time;
uint64_t last_value;
-} mono_counter_g CAR_GLOBAL;
+} mono_counter_g;
static inline struct monotonic_counter *get_monotonic_context(void)
{
- return car_get_var_ptr(&mono_counter_g);
+ return &mono_counter_g;
}
void timer_monotonic_get(struct mono_time *mt)