From da8b078184d31d23a6987120141d920d59d9fb08 Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Mon, 18 Jul 2011 09:32:52 +0200 Subject: [PATCH] align timer_ticks to a cache line --- arch/x86/kernel/timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/timer.c b/arch/x86/kernel/timer.c index 3df35d03..43c73808 100644 --- a/arch/x86/kernel/timer.c +++ b/arch/x86/kernel/timer.c @@ -33,7 +33,7 @@ * This will keep track of how many ticks the system * has been running for */ -static volatile uint64_t timer_ticks = 0; +static volatile uint64_t timer_ticks __attribute__ ((aligned (CACHE_LINE))) = 0; uint64_t get_clock_tick(void) {