From c43802c2e8136ca563b6962592149aa7c6ab095e Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Sat, 1 May 2010 01:27:21 +1200 Subject: [PATCH] Author: Francesco Chemolli Portability fix for profiler on CPU/OS combos where it's not supported. --- include/profiling.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/include/profiling.h b/include/profiling.h index 07da9f62cc..4d2138df4d 100644 --- a/include/profiling.h +++ b/include/profiling.h @@ -67,11 +67,8 @@ get_tick(void) } #else -static inline hrtime_t -get_tick(void) -{ - return 0; //unsupported on the CPU -} +/* This CPU is unsupported. Short-circuit, no profiling here */ +#define get_tick() 0 #undef USE_XPROF_STATS #endif -- 2.47.3