mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
LinuxKPI: implement timer_{delete,shutdown}_sync()
Implement timer_{delete,shutdown}_sync(), which do not seem to require
anything additional to the already existing del_timer_sync().
Sponsored by: The FreeBSD Foundation
MFC after: 10 days
Reviewed by: hselasky
Differential Revision: https://reviews.freebsd.org/D40124
This commit is contained in:
parent
8e7c2e14cf
commit
2e07e885d6
2 changed files with 16 additions and 0 deletions
|
|
@ -83,6 +83,8 @@ extern void add_timer(struct timer_list *);
|
|||
extern void add_timer_on(struct timer_list *, int cpu);
|
||||
extern int del_timer(struct timer_list *);
|
||||
extern int del_timer_sync(struct timer_list *);
|
||||
extern int timer_delete_sync(struct timer_list *);
|
||||
extern int timer_shutdown_sync(struct timer_list *);
|
||||
|
||||
#define timer_pending(timer) callout_pending(&(timer)->callout)
|
||||
#define round_jiffies(j) \
|
||||
|
|
|
|||
|
|
@ -2147,6 +2147,20 @@ del_timer_sync(struct timer_list *timer)
|
|||
return (1);
|
||||
}
|
||||
|
||||
int
|
||||
timer_delete_sync(struct timer_list *timer)
|
||||
{
|
||||
|
||||
return (del_timer_sync(timer));
|
||||
}
|
||||
|
||||
int
|
||||
timer_shutdown_sync(struct timer_list *timer)
|
||||
{
|
||||
|
||||
return (del_timer_sync(timer));
|
||||
}
|
||||
|
||||
/* greatest common divisor, Euclid equation */
|
||||
static uint64_t
|
||||
lkpi_gcd_64(uint64_t a, uint64_t b)
|
||||
|
|
|
|||
Loading…
Reference in a new issue