/* * Copyright 2016, Anton Blanchard, Michael Ellerman, IBM Corp. * Licensed under GPLv2. */ #define _GNU_SOURCE #include #include #include #include #include #include "utils.h" #define ITERATIONS 100000000 #define futex(A, B, C, D, E, F) syscall(__NR_futex, A, B, C, D, E, F) int test_futex(void) { struct timespec ts_start, ts_end; unsigned long i = ITERATIONS; clock_gettime(CLOCK_MONOTONIC, &ts_start); while (i--) { unsigned int addr = 0; futex(&addr, FUTEX_WAKE, 1, NULL, NULL, 0); } clock_gettime(CLOCK_MONOTONIC, &ts_end); printf("time = %.6f\n", ts_end.tv_sec - ts_start.tv_sec + (ts_end.tv_nsec - ts_start.tv_nsec) / 1e9); return 0; } int main(void) { return test_harness(test_futex, "futex_bench"); } /'>index : net-next.git
net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2016-11-15 15:01:09 +0000
committerMark Brown <broonie@kernel.org>2016-11-15 15:22:10 +0000
commit53a20465e6b674eb6ce594b0e9e8940495e95f33 (patch)
tree4d4c29c7c68ab2a1b69e4bd3903949356d2467e8 /sound/soc/qcom/Makefile
parent1001354ca34179f3db924eb66672442a173147dc (diff)
regulator: pwm: Add missing quotes to DT example
Reported-by: Peter Rosin <peda@axentia.se> Signed-off-by: Mark Brown <broonie@kernel.org> Acked-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'sound/soc/qcom/Makefile')