summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vppinfra/perfmon/perfmon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vppinfra/perfmon/perfmon.c b/src/vppinfra/perfmon/perfmon.c
index 9ec90b88d67..f44f225a86c 100644
--- a/src/vppinfra/perfmon/perfmon.c
+++ b/src/vppinfra/perfmon/perfmon.c
@@ -179,7 +179,7 @@ __clib_export void
clib_perfmon_warmup (clib_perfmon_ctx_t *ctx)
{
for (u64 i = 0; i < (u64) ctx->ref_clock; i++)
- asm inline("" : : "r"(i * i) : "memory");
+ asm volatile("" : : "r"(i * i) : "memory");
}
__clib_export u8 *