From patchwork Mon Jun 5 08:58:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerin Jacob X-Patchwork-Id: 25054 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 980EE7D77; Mon, 5 Jun 2017 10:59:34 +0200 (CEST) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0059.outbound.protection.outlook.com [104.47.36.59]) by dpdk.org (Postfix) with ESMTP id D27697D47 for ; Mon, 5 Jun 2017 10:59:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Xi66OrUCPY/dCF/Rv0gMn92zStRzdcCJImEAqk2C71I=; b=XPw6uRyEZqwc8n88EK34y7HYgiABRYXsfg3yM5KMGBabAhenSRaSlmtkMad1ia5cdYiZPcoPrfLXJUKV7V5gry2jvEezV23HZnxOELoGnhYg7CZysS+3yRDRdpryjqNe9NEblggRaiNi2NRDBfgBzYF4JsNCd7u8rIAhL8+rkBU= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=caviumnetworks.com; Received: from jerin.domain.name (171.76.74.1) by CY1PR0701MB1726.namprd07.prod.outlook.com (10.163.21.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1143.10; Mon, 5 Jun 2017 08:59:28 +0000 From: Jerin Jacob To: dev@dpdk.org Cc: thomas@monjalon.net, bruce.richardson@intel.com, Jerin Jacob Date: Mon, 5 Jun 2017 14:28:43 +0530 Message-Id: <20170605085843.16696-6-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170605085843.16696-1-jerin.jacob@caviumnetworks.com> References: <20170511101046.26456-1-jerin.jacob@caviumnetworks.com> <20170605085843.16696-1-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 X-Originating-IP: [171.76.74.1] X-ClientProxiedBy: BMXPR01CA0026.INDPRD01.PROD.OUTLOOK.COM (10.174.214.12) To CY1PR0701MB1726.namprd07.prod.outlook.com (10.163.21.140) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY1PR0701MB1726: X-MS-Office365-Filtering-Correlation-Id: 761a2493-6c55-4b98-758d-08d4abf12d5f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:CY1PR0701MB1726; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1726; 3:5ZPWNSTISg3OdR+zwHOUihK+cE79qfW6uuOY5byrFDVPfcvi/9g4mKLujYXxHWwL3EMzcYcoRcdzXRvfq7ezW09ffBCRTqMwPqd3O+vl2dHHCmhWzUgU+8hK1JszNW6eLuqja90ILzQ3WMXv5M1hHyZGZfWYbZo0Q/v3TZWrUQqnY/KzoUwAEs7OUlQEpr1tDShAwFiRhFXnpeJZ9Hadv2Lkec8enM1cDH7kaxhaHo9G0OIMH4NCcC5h/24CYFwh5hgWZEYX5MW3GWbP2DjbVxT7DA5qp4YuVALdIOiIH0r50sCaXGr8YSjHVfRCBf253qaSiLSgNSj5JfJr6FDXGg==; 25:tMp/neWBGwsPNvelc7/EddCYCJK9yVRN8Izbp6Ezw/UXLnvEZKvLEhKiGJTU7W9uOdBfM6NsQW1BPcs7F20XTENFJ6MWw7iFin1P5TUobXiZG3iLrKQ26ojSYgaFzDAavn4WAsjDziiyFNYjNhuMp4LuWv5wP4oxcyz2wg/mM97V4PHq1xZKZmF5044+JfXiueHmFLM5QxdzXKJz61u3sd4nMbuFMxGTsspbTSjpVLUl0zMoWlWvPqanbbsbwssfa2OgNwxg56luHW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CuWbR/iBMUiF9S6KkYYuq0q0RC24mZS72g= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(3002001)(10201501046)(100000703101)(100105400095)(6041248)(20161123562025)(20161123560025)(20161123564025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY1PR0701MB1726; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY1PR0701MB1726; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0701MB1726; 4:XNEc/ERgEVCZNZzWm8rMF5LXAiPYOLQdNbLY/M0F?= +AZiWbINFnmgdTT+uYMT7kx4Cvc+dDrlGETl0hOou78HEIvNKqOt2APyi5gRADRldV6yl/aJkfFho4ArBn3CACNyvOl3vDt26prycw1kJkppMvRYc8vKwSTKOtbZ7XYol4cHN7/5j65lXHUXHppwdQj4C2NYQkQUE/26WceGHZIjot7i/oMaKDnQhBNRtj4slUNdtEyrXNF8zFH5cQclpJK+ELDg6NJlxej0uLeSjpR4g6baFs0pF6yYBCczsK4S08CXtsd9P0JRsYi+kRU4oy+7eezo+Dqo2V2ZL155cXJzTPUj+BQZmUa/TvcPXNKFLMMrUfX00U2FvOu2cmp/RJLNkOI9M/Nig2sYOq+Dt6tex1rUVT4YU9HvmYsftlbq+XzFEeftxU243FnxCx6+L+LcqRUzVSkqiyZcQbnKlhhy6wLEDC7AlsTNkmqhPRYVaJS6vqH1O2O+CqxvWmVLDTyKvRlw8jQmaIAF5AuyGrTFDnWKwkF1ebizZpxv+sQQliCHrolnBiG9i5Sd/9r9CaNsCYcPNvgk7xwyr8/4kEmmyzjrGjLhsQkuZ6FI7zNNmC3fxHhd9yzhMOyy8pO7MXqAmrYoM2sy5s7oNa3pFHnsqXFLAfcVR/axeFV3gZM+ebOuq1iKG1VFsI3WT0HyDVKkctWn9M99HRk+QKJbf4bgWFXAr2AKzJWEHyRx0b7zzP3AJcONJH7Wh6AqlSm7cMC2AOTyCI7rP7YHzIYj0mLyMQxwgX6ET5mft/5ngV9woRB7INFMq/cwvrD1c+aGlJozmC46sCcAxbigfNF2Ybq2GgoRClkV4BzugKaHj8dz7OpyGOsc9dZZZ/AfQHdftGgviBtKcBHRaMAWtmDD8ma1K91JxuIKw7w0Hd4oI2/ewVfU+ZdJXIHGtI/95dZ2aWna1HjbrvV/D8v51Ybt3QOlL6ilwmUKo+vBWDi3br+frzjdFGWEKvUcQq5EIdJ3N8HY5VVpvper2xXGQ8V0WoRDrw8CwQXjbEBKLu9Xnr/qL845jYnScSCW13iGiPxf6CuVrteQVMPspa7a6+iSGMLcfsXflDo4HPqcL3mLV+R68u4= X-Forefront-PRVS: 0329B15C8A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39410400002)(39400400002)(39840400002)(39450400003)(47776003)(189998001)(66066001)(575784001)(50986999)(76176999)(2361001)(2351001)(36756003)(6116002)(3846002)(1076002)(33646002)(5003940100001)(5660300001)(53416004)(7736002)(305945005)(42186005)(50226002)(81166006)(8676002)(6666003)(72206003)(2950100002)(42882006)(6916009)(478600001)(6512007)(25786009)(110136004)(38730400002)(107886003)(53936002)(2906002)(6506006)(4326008)(6486002)(48376002)(50466002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0701MB1726; H:jerin.domain.name; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0701MB1726; 23:/D65rP4kOG7YDLmjWDPvKdmRjjuMTTKVynRFLUU?= /lUrJVqQaKjkvalMbU49vao3zVN6xIfFpRzb4gX47mU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AT4T0HO1NbuGg0tHJsjBTokYG; 24:LVdEIBPPMp5T1woRMNup1NavhR5kucrKAvC4Tz9vrEOhKvJhMru3zGZn+db+nruX8CbGIYIhQh4L/Gumd2+4zPEdLMs2aWp9WmnnduK/xxA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1726; 7:Fm6W0dQtYxOQ6ICP3ghdrq8vynpdwn3l5XBQxEvAKABaTyEZh6d+noR47Y3HW0dA/MPpTkx1Xuw2K+dDtGE5DkATuNdvhE4B8reF7zU7Gwi9VVgW/GqzTWgLA3/sfSbcoxUTb3rYMKky/RQvV9jTnJhcyABUdroCrmTZxnsG3DV5KQhCZ9B4CmtKuWDkY/n8SllusjEDWojvY67Dsus5oDmS6EvT86J2gkZ3dvqgR8wlZnuxO9thFf62ULj03zdgK0CFNUFFHQwO3aqtdeVZ/c352kg5hA1cZquzouFlFFfxJE9Tvaz69NygilZrCRzg3Gsr5c4x4fh/kUHG3P2xzw== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jun 2017 08:59:28.5436 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0701MB1726 Subject: [dpdk-dev] [PATCH v2 6/6] eal: switchover to architecture specific rte pause function X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Remove rte_pause() definition from rte_common.h and switchover to architecture specific rte_pause.h Signed-off-by: Jerin Jacob --- examples/distributor/main.c | 1 + examples/l2fwd-jobstats/main.c | 1 + examples/performance-thread/l3fwd-thread/main.c | 1 + examples/tep_termination/main.c | 1 + examples/vhost/main.c | 1 + examples/vhost_xen/main.c | 1 + lib/librte_distributor/rte_distributor.c | 2 ++ lib/librte_distributor/rte_distributor_v20.c | 2 ++ lib/librte_eal/common/eal_common_timer.c | 1 + lib/librte_eal/common/include/arch/ppc_64/rte_spinlock.h | 1 + lib/librte_eal/common/include/arch/x86/rte_spinlock.h | 1 + lib/librte_eal/common/include/generic/rte_rwlock.h | 1 + lib/librte_eal/common/include/generic/rte_spinlock.h | 1 + lib/librte_eal/common/include/rte_common.h | 15 --------------- lib/librte_eal/common/include/rte_eal_memconfig.h | 1 + lib/librte_eal/linuxapp/eal/eal_interrupts.c | 1 + lib/librte_hash/rte_cuckoo_hash.c | 1 + lib/librte_ring/rte_ring.h | 1 + lib/librte_timer/rte_timer.c | 1 + test/test/test_common.c | 1 + test/test/test_cryptodev.c | 1 + test/test/test_cryptodev_blockcipher.c | 1 + test/test/test_distributor_perf.c | 1 + test/test/test_eventdev_sw.c | 3 ++- test/test/test_ring_perf.c | 1 + test/test/test_timer.c | 1 + test/test/test_timer_perf.c | 1 + test/test/test_timer_racecond.c | 1 + 28 files changed, 30 insertions(+), 16 deletions(-) diff --git a/examples/distributor/main.c b/examples/distributor/main.c index 8071f9195..cf8982a71 100644 --- a/examples/distributor/main.c +++ b/examples/distributor/main.c @@ -43,6 +43,7 @@ #include #include #include +#include #define RX_RING_SIZE 512 #define TX_RING_SIZE 512 diff --git a/examples/l2fwd-jobstats/main.c b/examples/l2fwd-jobstats/main.c index e6e6c2286..d21e8338e 100644 --- a/examples/l2fwd-jobstats/main.c +++ b/examples/l2fwd-jobstats/main.c @@ -67,6 +67,7 @@ #include #include #include +#include #define RTE_LOGTYPE_L2FWD RTE_LOGTYPE_USER1 diff --git a/examples/performance-thread/l3fwd-thread/main.c b/examples/performance-thread/l3fwd-thread/main.c index ac85a369f..778adaf8a 100644 --- a/examples/performance-thread/l3fwd-thread/main.c +++ b/examples/performance-thread/l3fwd-thread/main.c @@ -73,6 +73,7 @@ #include #include #include +#include #include #include diff --git a/examples/tep_termination/main.c b/examples/tep_termination/main.c index cd6e3f1cf..224893413 100644 --- a/examples/tep_termination/main.c +++ b/examples/tep_termination/main.c @@ -50,6 +50,7 @@ #include #include #include +#include #include "main.h" #include "vxlan.h" diff --git a/examples/vhost/main.c b/examples/vhost/main.c index e07f86693..076935bf5 100644 --- a/examples/vhost/main.c +++ b/examples/vhost/main.c @@ -52,6 +52,7 @@ #include #include #include +#include #include "main.h" diff --git a/examples/vhost_xen/main.c b/examples/vhost_xen/main.c index d9ef140f7..e5166214c 100644 --- a/examples/vhost_xen/main.c +++ b/examples/vhost_xen/main.c @@ -48,6 +48,7 @@ #include #include #include +#include #include "main.h" #include "virtio-net.h" diff --git a/lib/librte_distributor/rte_distributor.c b/lib/librte_distributor/rte_distributor.c index e4dfa7f0e..32dd18edc 100644 --- a/lib/librte_distributor/rte_distributor.c +++ b/lib/librte_distributor/rte_distributor.c @@ -42,6 +42,8 @@ #include #include #include +#include + #include "rte_distributor_private.h" #include "rte_distributor.h" #include "rte_distributor_v20.h" diff --git a/lib/librte_distributor/rte_distributor_v20.c b/lib/librte_distributor/rte_distributor_v20.c index bb6c5d709..b09abecd5 100644 --- a/lib/librte_distributor/rte_distributor_v20.c +++ b/lib/librte_distributor/rte_distributor_v20.c @@ -41,6 +41,8 @@ #include #include #include +#include + #include "rte_distributor_v20.h" #include "rte_distributor_private.h" diff --git a/lib/librte_eal/common/eal_common_timer.c b/lib/librte_eal/common/eal_common_timer.c index 72656176e..ed0b16d05 100644 --- a/lib/librte_eal/common/eal_common_timer.c +++ b/lib/librte_eal/common/eal_common_timer.c @@ -41,6 +41,7 @@ #include #include #include +#include #include "eal_private.h" diff --git a/lib/librte_eal/common/include/arch/ppc_64/rte_spinlock.h b/lib/librte_eal/common/include/arch/ppc_64/rte_spinlock.h index af139c9d3..39815d9ee 100644 --- a/lib/librte_eal/common/include/arch/ppc_64/rte_spinlock.h +++ b/lib/librte_eal/common/include/arch/ppc_64/rte_spinlock.h @@ -38,6 +38,7 @@ extern "C" { #endif #include +#include #include "generic/rte_spinlock.h" /* Fixme: Use intrinsics to implement the spinlock on Power architecture */ diff --git a/lib/librte_eal/common/include/arch/x86/rte_spinlock.h b/lib/librte_eal/common/include/arch/x86/rte_spinlock.h index 8e630c219..5675c2b45 100644 --- a/lib/librte_eal/common/include/arch/x86/rte_spinlock.h +++ b/lib/librte_eal/common/include/arch/x86/rte_spinlock.h @@ -43,6 +43,7 @@ extern "C" { #include "rte_cpuflags.h" #include "rte_branch_prediction.h" #include "rte_common.h" +#include "rte_pause.h" #define RTE_RTM_MAX_RETRIES (10) #define RTE_XABORT_LOCK_BUSY (0xff) diff --git a/lib/librte_eal/common/include/generic/rte_rwlock.h b/lib/librte_eal/common/include/generic/rte_rwlock.h index 7a0fdc55c..fdb3113d3 100644 --- a/lib/librte_eal/common/include/generic/rte_rwlock.h +++ b/lib/librte_eal/common/include/generic/rte_rwlock.h @@ -52,6 +52,7 @@ extern "C" { #include #include +#include /** * The rte_rwlock_t type. diff --git a/lib/librte_eal/common/include/generic/rte_spinlock.h b/lib/librte_eal/common/include/generic/rte_spinlock.h index e51fc56ba..54f83a4c5 100644 --- a/lib/librte_eal/common/include/generic/rte_spinlock.h +++ b/lib/librte_eal/common/include/generic/rte_spinlock.h @@ -51,6 +51,7 @@ #ifdef RTE_FORCE_INTRINSICS #include #endif +#include /** * The rte_spinlock_t type. diff --git a/lib/librte_eal/common/include/rte_common.h b/lib/librte_eal/common/include/rte_common.h index e057f6e21..31d5021ec 100644 --- a/lib/librte_eal/common/include/rte_common.h +++ b/lib/librte_eal/common/include/rte_common.h @@ -294,21 +294,6 @@ rte_align64pow2(uint64_t v) /*********** Other general functions / macros ********/ -#ifdef __SSE2__ -#include -/** - * PAUSE instruction for tight loops (avoid busy waiting) - */ -static inline void -rte_pause (void) -{ - _mm_pause(); -} -#else -static inline void -rte_pause(void) {} -#endif - /** * Searches the input parameter for the least significant set bit * (starting from zero). diff --git a/lib/librte_eal/common/include/rte_eal_memconfig.h b/lib/librte_eal/common/include/rte_eal_memconfig.h index 2b5e0b170..b9eee702e 100644 --- a/lib/librte_eal/common/include/rte_eal_memconfig.h +++ b/lib/librte_eal/common/include/rte_eal_memconfig.h @@ -39,6 +39,7 @@ #include #include #include +#include #ifdef __cplusplus extern "C" { diff --git a/lib/librte_eal/linuxapp/eal/eal_interrupts.c b/lib/librte_eal/linuxapp/eal/eal_interrupts.c index 2e3bd12a4..3e9ac41ee 100644 --- a/lib/librte_eal/linuxapp/eal/eal_interrupts.c +++ b/lib/librte_eal/linuxapp/eal/eal_interrupts.c @@ -64,6 +64,7 @@ #include #include #include +#include #include "eal_private.h" #include "eal_vfio.h" diff --git a/lib/librte_hash/rte_cuckoo_hash.c b/lib/librte_hash/rte_cuckoo_hash.c index 645c0cfab..83444d39d 100644 --- a/lib/librte_hash/rte_cuckoo_hash.c +++ b/lib/librte_hash/rte_cuckoo_hash.c @@ -57,6 +57,7 @@ #include #include #include +#include #include "rte_hash.h" #include "rte_cuckoo_hash.h" diff --git a/lib/librte_ring/rte_ring.h b/lib/librte_ring/rte_ring.h index 97f025a1f..5f93cb7a6 100644 --- a/lib/librte_ring/rte_ring.h +++ b/lib/librte_ring/rte_ring.h @@ -101,6 +101,7 @@ extern "C" { #include #include #include +#include #define RTE_TAILQ_RING_NAME "RTE_RING" diff --git a/lib/librte_timer/rte_timer.c b/lib/librte_timer/rte_timer.c index 18782fab0..9994f5515 100644 --- a/lib/librte_timer/rte_timer.c +++ b/lib/librte_timer/rte_timer.c @@ -51,6 +51,7 @@ #include #include #include +#include #include "rte_timer.h" diff --git a/test/test/test_common.c b/test/test/test_common.c index 8effa2f9e..6e803f5d3 100644 --- a/test/test/test_common.c +++ b/test/test/test_common.c @@ -35,6 +35,7 @@ #include #include #include +#include #include "test.h" diff --git a/test/test/test_cryptodev.c b/test/test/test_cryptodev.c index 029ce8a0f..671911a5d 100644 --- a/test/test/test_cryptodev.c +++ b/test/test/test_cryptodev.c @@ -35,6 +35,7 @@ #include #include #include +#include #include #include diff --git a/test/test/test_cryptodev_blockcipher.c b/test/test/test_cryptodev_blockcipher.c index 603c77652..ce350e39f 100644 --- a/test/test/test_cryptodev_blockcipher.c +++ b/test/test/test_cryptodev_blockcipher.c @@ -35,6 +35,7 @@ #include #include #include +#include #include #include diff --git a/test/test/test_distributor_perf.c b/test/test/test_distributor_perf.c index 732d86d0e..7d69887b9 100644 --- a/test/test/test_distributor_perf.c +++ b/test/test/test_distributor_perf.c @@ -40,6 +40,7 @@ #include #include #include +#include #define ITER_POWER_CL 25 /* log 2 of how many iterations for Cache Line test */ #define ITER_POWER 21 /* log 2 of how many iterations we do when timing. */ diff --git a/test/test/test_eventdev_sw.c b/test/test/test_eventdev_sw.c index b187d0290..a17adbfbe 100644 --- a/test/test/test_eventdev_sw.c +++ b/test/test/test_eventdev_sw.c @@ -47,8 +47,9 @@ #include #include #include - #include +#include + #include "test.h" #define MAX_PORTS 16 diff --git a/test/test/test_ring_perf.c b/test/test/test_ring_perf.c index ed89896b3..84d200332 100644 --- a/test/test/test_ring_perf.c +++ b/test/test/test_ring_perf.c @@ -37,6 +37,7 @@ #include #include #include +#include #include "test.h" diff --git a/test/test/test_timer.c b/test/test/test_timer.c index 2f6525a50..de0c312fa 100644 --- a/test/test/test_timer.c +++ b/test/test/test_timer.c @@ -136,6 +136,7 @@ #include #include #include +#include #define TEST_DURATION_S 1 /* in seconds */ #define NB_TIMER 4 diff --git a/test/test/test_timer_perf.c b/test/test/test_timer_perf.c index fa77efbd2..467ae13da 100644 --- a/test/test/test_timer_perf.c +++ b/test/test/test_timer_perf.c @@ -42,6 +42,7 @@ #include #include #include +#include #define MAX_ITERATIONS 1000000 diff --git a/test/test/test_timer_racecond.c b/test/test/test_timer_racecond.c index 7824ec4bf..5e08f06be 100644 --- a/test/test/test_timer_racecond.c +++ b/test/test/test_timer_racecond.c @@ -42,6 +42,7 @@ #include #include #include +#include #undef TEST_TIMER_RACECOND_VERBOSE