On Tue, Aug 15, 2006 at 09:58:19PM -0400, jamal wrote:
>
> diff --git a/include/net/xfrm.h b/include/net/xfrm.h
> index 8123d49..05444dd 100644
> --- a/include/net/xfrm.h
> +++ b/include/net/xfrm.h
> @@ -619,6 +619,14 @@ xfrm_state_addr_cmp(struct xfrm_tmpl *tm
> return !0;
> }
>
> +static inline unsigned long make_jiffies(long secs)
> +{
> + if (secs >= (MAX_SCHEDULE_TIMEOUT-1)/HZ)
> + return MAX_SCHEDULE_TIMEOUT-1;
> + else
> + return secs*HZ;
> +}
This name is probably too generic for net/xfrm.h. How about moving
it to linux/jiffies.h and rewrite in the style of msec_to_jiffies?
Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html