lkml.org 
[lkml]   [2013]   [May]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH 01/11] time: add *_to_jiffies_min helpers to guarantee a minimum duration
    From
    Date
    On Mon, 2013-05-13 at 10:17 +0200, Jean Delvare wrote:
    > BTW...
    >
    > On Fri, 10 May 2013 15:13:19 +0300, Imre Deak wrote:
    > > +#define __define_time_to_jiffies_min(tname, ttype) \
    > > +static inline unsigned long \
    > > +tname ## _to_jiffies_min(const ttype m) \
    > > +{ \
    > > + return max_t(long, MAX_JIFFY_OFFSET, tname ## _to_jiffies(m) + 1);\
    > > +}
    >
    > How would this work at all? Isn't it going to just return
    > MAX_JIFFY_OFFSET all the time?

    Yes, that's a mistake, I meant here min_t.

    --Imre




    \
     
     \ /
      Last update: 2013-05-13 14:41    [W:5.219 / U:0.120 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site