Correct msecs_to_ticks macro. This fixes problems when hz is not the
default 1000 setting. Reviewed by: thompsa, rpaulo Approved by: re (bmah)
This commit is contained in:
parent
81cd8a5bf0
commit
b038594e17
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=171022
@ -177,7 +177,7 @@ int ieee80211_node_dectestref(struct ieee80211_node *ni);
|
|||||||
struct ifqueue;
|
struct ifqueue;
|
||||||
void ieee80211_drain_ifq(struct ifqueue *);
|
void ieee80211_drain_ifq(struct ifqueue *);
|
||||||
|
|
||||||
#define msecs_to_ticks(ms) ((ms)*1000/hz)
|
#define msecs_to_ticks(ms) (((ms)*hz)/1000)
|
||||||
#define time_after(a,b) ((long)(b) - (long)(a) < 0)
|
#define time_after(a,b) ((long)(b) - (long)(a) < 0)
|
||||||
#define time_before(a,b) time_after(b,a)
|
#define time_before(a,b) time_after(b,a)
|
||||||
#define time_after_eq(a,b) ((long)(a) - (long)(b) >= 0)
|
#define time_after_eq(a,b) ((long)(a) - (long)(b) >= 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user