From: Jerin Jacob Date: Sun, 13 Aug 2017 12:33:38 +0000 (+0530) Subject: timer: use 64-bit specific code on more platforms X-Git-Tag: spdx-start~1610 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=1e36bf301bbfa79efe340faf07e8cdb968ae34bd;p=dpdk.git timer: use 64-bit specific code on more platforms 64bit load and store will be an atomic operation on all the 64bit processors. Change RTE_ARCH_X86_64 to RTE_ARCH_64 to reflect the case. Fixes: 9b15ba895b9f ("timer: use a skip list") Cc: stable@dpdk.org Signed-off-by: Jerin Jacob --- diff --git a/lib/librte_timer/rte_timer.c b/lib/librte_timer/rte_timer.c index ec86744e06..78158ab312 100644 --- a/lib/librte_timer/rte_timer.c +++ b/lib/librte_timer/rte_timer.c @@ -526,7 +526,7 @@ void rte_timer_manage(void) return; cur_time = rte_get_timer_cycles(); -#ifdef RTE_ARCH_X86_64 +#ifdef RTE_ARCH_64 /* on 64-bit the value cached in the pending_head.expired will be * updated atomically, so we can consult that for a quick check here * outside the lock */