tests: benchmarks: latency_measure: Fix build issue with abs()

We now have a define for abs() in stdlib, so we can remove the version
implemented in the test.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2018-01-24 07:42:00 -06:00 committed by Kumar Gala
parent b452e1bbbb
commit 9a87b8535e

View file

@ -12,15 +12,10 @@
*/
#include <zephyr.h>
#include <stdlib.h>
#include <timestamp.h> /* reading time */
#include "utils.h" /* PRINT () and other macros */
/* <stdlib.h> is not supported */
static int abs(int i)
{
return (i >= 0) ? i : -i;
}
/* context switch enough time so our measurement is precise */
#define NB_OF_YIELD 1000