summaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorSridhar Samudrala <sri@us.ibm.com>2003-10-01 21:36:34 -0700
committerSridhar Samudrala <sri@us.ibm.com>2003-10-01 21:36:34 -0700
commit0b49f36e7c57b37faa042bdf9dc8dd405b5996ba (patch)
tree137d606cf6dfd5198cedd92c72f9c9e264c98b08 /include/net
parent3e94542ba739a1d6b31ecdaf8709222394edec59 (diff)
[SCTP] Fix bugs in conversions between msecs and jiffies.
Diffstat (limited to 'include/net')
-rw-r--r--include/net/sctp/sctp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/sctp/sctp.h b/include/net/sctp/sctp.h
index d17452eaa36d..bf33562cd101 100644
--- a/include/net/sctp/sctp.h
+++ b/include/net/sctp/sctp.h
@@ -116,6 +116,9 @@
#define SCTP_STATIC static
#endif
+#define MSECS_TO_JIFFIES(msec) (msec * HZ / 1000)
+#define JIFFIES_TO_MSECS(jiff) (jiff * 1000 / HZ)
+
/*
* Function declarations.
*/