timer.h (b626f5a73a48f44a31a200291b141e1da408a2ff) timer.h (def277d3ef0ec9b5feadb62bba20985654fbf7ca)
1/*-
2 * Copyright (c) 2010 Isilon Systems, Inc.
3 * Copyright (c) 2010 iX Systems, Inc.
4 * Copyright (c) 2010 Panasas, Inc.
5 * Copyright (c) 2013, 2014 Mellanox Technologies, Ltd.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 48 unchanged lines hidden (view full) ---

57do { \
58 (timer)->function = NULL; \
59 (timer)->data = 0; \
60 callout_init(&(timer)->timer_callout, 1); \
61} while (0)
62
63extern void mod_timer(struct timer_list *, unsigned long);
64extern void add_timer(struct timer_list *);
1/*-
2 * Copyright (c) 2010 Isilon Systems, Inc.
3 * Copyright (c) 2010 iX Systems, Inc.
4 * Copyright (c) 2010 Panasas, Inc.
5 * Copyright (c) 2013, 2014 Mellanox Technologies, Ltd.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 48 unchanged lines hidden (view full) ---

57do { \
58 (timer)->function = NULL; \
59 (timer)->data = 0; \
60 callout_init(&(timer)->timer_callout, 1); \
61} while (0)
62
63extern void mod_timer(struct timer_list *, unsigned long);
64extern void add_timer(struct timer_list *);
65extern void add_timer_on(struct timer_list *, int cpu);
65
66#define del_timer(timer) callout_stop(&(timer)->timer_callout)
67#define del_timer_sync(timer) callout_drain(&(timer)->timer_callout)
68#define timer_pending(timer) callout_pending(&(timer)->timer_callout)
69#define round_jiffies(j) \
70 ((unsigned long)(((j) + linux_timer_hz_mask) & ~linux_timer_hz_mask))
71#define round_jiffies_relative(j) \
72 round_jiffies(j)
73
74#endif /* _LINUX_TIMER_H_ */
66
67#define del_timer(timer) callout_stop(&(timer)->timer_callout)
68#define del_timer_sync(timer) callout_drain(&(timer)->timer_callout)
69#define timer_pending(timer) callout_pending(&(timer)->timer_callout)
70#define round_jiffies(j) \
71 ((unsigned long)(((j) + linux_timer_hz_mask) & ~linux_timer_hz_mask))
72#define round_jiffies_relative(j) \
73 round_jiffies(j)
74
75#endif /* _LINUX_TIMER_H_ */