[PATCH] selftests/powerpc: Import Anton's mmap & futex micro benchmarks
Michael Ellerman
mpe at ellerman.id.au
Thu Jun 2 22:05:09 AEST 2016
On Thu, 2016-06-02 at 22:02 +1000, Michael Ellerman wrote:
> +
> +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);
> + }
Ugh, I can't even ..
Obviously I'll fix up the whitespace before committing.
cheers
More information about the Linuxppc-dev
mailing list