linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Michael Ellerman <mpe@ellerman.id.au>
To: linuxppc-dev@ozlabs.org
Cc: Anton Blanchard <anton@samba.org>
Subject: Re: [PATCH] selftests/powerpc: Import Anton's mmap & futex micro benchmarks
Date: Thu, 02 Jun 2016 22:05:09 +1000	[thread overview]
Message-ID: <1464869109.31709.0.camel@ellerman.id.au> (raw)
In-Reply-To: <1464868921-30413-1-git-send-email-mpe@ellerman.id.au>

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

  reply	other threads:[~2016-06-02 12:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-02 12:02 [PATCH] selftests/powerpc: Import Anton's mmap & futex micro benchmarks Michael Ellerman
2016-06-02 12:05 ` Michael Ellerman [this message]
2016-07-05 14:10 ` Michael Ellerman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1464869109.31709.0.camel@ellerman.id.au \
    --to=mpe@ellerman.id.au \
    --cc=anton@samba.org \
    --cc=linuxppc-dev@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).