netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tejaswi Tanikella <tejaswit@codeaurora.org>
To: Andrew Lunn <andrew@lunn.ch>
Cc: netdev@vger.kernel.org, f.fainelli@gmail.com, davem@davemloft.net
Subject: Re: [PATCH 2/2] ktime: helpers to convert between ktime and jiffies
Date: Wed, 13 Jun 2018 19:05:58 +0530	[thread overview]
Message-ID: <20180613133557.GA15265@tejaswit-linux.qualcomm.com> (raw)
In-Reply-To: <20180612163032.GB12251@lunn.ch>

On Tue, Jun 12, 2018 at 06:30:32PM +0200, Andrew Lunn wrote:
> On Mon, Jun 11, 2018 at 05:22:28PM +0530, Tejaswi Tanikella wrote:
> > Signed-off-by: Tejaswi Tanikella <tejaswit@codeaurora.org>
> > ---
> >  include/linux/ktime.h | 4 ++++
> >  1 file changed, 4 insertions(+)
> > 
> > diff --git a/include/linux/ktime.h b/include/linux/ktime.h
> > index 5b9fddb..4881483 100644
> > --- a/include/linux/ktime.h
> > +++ b/include/linux/ktime.h
> > @@ -96,6 +96,10 @@ static inline ktime_t timeval_to_ktime(struct timeval tv)
> >  /* Convert ktime_t to nanoseconds - NOP in the scalar storage format: */
> >  #define ktime_to_ns(kt)			(kt)
> >  
> > +/* ktime to jiffies and back */
> > +#define ktime_to_jiffies(kt)		nsecs_to_jiffies(kt)
> > +#define jiffies_to_ktime(j)		jiffies_to_nsecs(j)
> 
> Hi Tejaswi
> 
> You should also add some users of these new helpers.
> 
>     Andrew

Hi Andrew,

I used them in the first patch.

Thanks,
Tejaswi

  reply	other threads:[~2018-06-13 13:36 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-11 11:51 [PATCH net 1/2] ipv4: igmp: use alarmtimer to prevent delayed reports Tejaswi Tanikella
2018-06-11 11:52 ` [PATCH 2/2] ktime: helpers to convert between ktime and jiffies Tejaswi Tanikella
2018-06-12 16:30   ` Andrew Lunn
2018-06-13 13:35     ` Tejaswi Tanikella [this message]
2018-06-13 16:51       ` Florian Fainelli
2018-06-11 13:25 ` [PATCH net 1/2] ipv4: igmp: use alarmtimer to prevent delayed reports kbuild test robot
2018-06-11 13:25 ` kbuild test robot
2018-06-12 16:28 ` Andrew Lunn
2018-06-13 13:32   ` Tejaswi Tanikella
2018-06-13 14:44     ` Andrew Lunn
2018-06-14 13:14       ` Tejaswi Tanikella

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=20180613133557.GA15265@tejaswit-linux.qualcomm.com \
    --to=tejaswit@codeaurora.org \
    --cc=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=f.fainelli@gmail.com \
    --cc=netdev@vger.kernel.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).