From: Ian Kent <raven@themaw.net>
To: Ning Yu <ning.yu@canonical.com>
Cc: Yu Ning <ning.yu@ubuntu.com>,
autofs mailing list <autofs@vger.kernel.org>
Subject: Re: [PATCH v5 8/8] autofs-5.1.1 - remove unused function elapsed()
Date: Mon, 21 Sep 2015 16:45:28 +0800 [thread overview]
Message-ID: <1442825128.6123.8.camel@themaw.net> (raw)
In-Reply-To: <CAA1QoHSmAeB34Xb7Q5HXx5+usu56fQ6J51ewHngkckxEXf=PmQ@mail.gmail.com>
On Mon, 2015-09-21 at 13:25 +0800, Ning Yu wrote:
> On Fri, Sep 18, 2015 at 5:35 PM, Ian Kent <raven@themaw.net> wrote:
> > Now that the monotonic clock source is used the elapsed() function
> > is no longer used, remove it.
> >
> > Signed-off-by: Ian Kent <raven@themaw.net>
> > ---
> > lib/rpc_subs.c | 8 --------
> > 1 file changed, 8 deletions(-)
>
> Oh, I think we also need to remove the declaration of elapsed() in
> include/rpc_subs.h
Ha, indeed we do.
>
> >
> > diff --git a/lib/rpc_subs.c b/lib/rpc_subs.c
> > index 2364744..3d99f56 100644
> > --- a/lib/rpc_subs.c
> > +++ b/lib/rpc_subs.c
> > @@ -1078,14 +1078,6 @@ int rpc_ping(const char *host, long seconds, long micros, unsigned int option)
> > return status;
> > }
> >
> > -double elapsed(struct timeval start, struct timeval end)
> > -{
> > - double t1, t2;
> > - t1 = (double)start.tv_sec + (double)start.tv_usec/(1000*1000);
> > - t2 = (double)end.tv_sec + (double)end.tv_usec/(1000*1000);
> > - return t2-t1;
> > -}
> > -
> > double monotonic_elapsed(struct timespec start, struct timespec end)
> > {
> > double t1, t2;
> >
--
To unsubscribe from this list: send the line "unsubscribe autofs" in
next prev parent reply other threads:[~2015-09-21 8:45 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-18 9:34 [PATCH v5 0/8] Series to change autofs to using a monotonic clock Ian Kent
2015-09-18 9:34 ` [PATCH v5 1/8] autofs-5.1.1 - define monotonic clock helper functions Ian Kent
2015-09-18 9:34 ` [PATCH v5 2/8] autofs-5.1.1 - use monotonic clock for alarm thread condition wait Ian Kent
2015-09-18 9:34 ` [PATCH v5 3/8] autofs-5.1.1 - define pending condition init helper function Ian Kent
2015-09-18 9:34 ` [PATCH v5 4/8] autofs-5.1.1 - use monotonic clock for direct mount condition Ian Kent
2015-09-18 9:34 ` [PATCH v5 5/8] autofs-5.1.1 - use monotonic clock for indirect " Ian Kent
2015-09-18 9:35 ` [PATCH v5 6/8] autofs-5.1.1 - change remaining gettimeofday() to use clock_gettime() Ian Kent
2015-09-18 9:35 ` [PATCH v5 7/8] autofs-5.1.1 - change time() to use monotonic_clock() Ian Kent
2015-09-18 10:12 ` Ning Yu
2015-09-20 2:12 ` Ian Kent
2015-09-18 9:35 ` [PATCH v5 8/8] autofs-5.1.1 - remove unused function elapsed() Ian Kent
2015-09-21 5:25 ` Ning Yu
2015-09-21 8:45 ` Ian Kent [this message]
2015-09-18 10:18 ` [PATCH v5 0/8] Series to change autofs to using a monotonic clock Ning Yu
2015-09-20 2:15 ` Ian Kent
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=1442825128.6123.8.camel@themaw.net \
--to=raven@themaw.net \
--cc=autofs@vger.kernel.org \
--cc=ning.yu@canonical.com \
--cc=ning.yu@ubuntu.com \
/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 read-only IMAP folder(s) and NNTP newsgroup(s).