Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src-draft/trunk]: src/sys/net80211 Fill in more of taskqueue_cancel/enqueue_...
details: https://anonhg.NetBSD.org/src-all/rev/c94ff7cef24b
branches: trunk
changeset: 374934:c94ff7cef24b
user: Nathanial Sloss <nat%netbsd.org@localhost>
date: Fri May 22 23:22:50 2020 +1000
description:
Fill in more of taskqueue_cancel/enqueue_timeout.
diffstat:
sys/net80211/ieee80211_netbsd.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (25 lines):
diff -r b746915e3782 -r c94ff7cef24b sys/net80211/ieee80211_netbsd.c
--- a/sys/net80211/ieee80211_netbsd.c Fri May 22 23:22:10 2020 +1000
+++ b/sys/net80211/ieee80211_netbsd.c Fri May 22 23:22:50 2020 +1000
@@ -152,14 +152,20 @@ taskqueue_enqueue_timeout(struct workque
}
mutex_exit(&timeout_task->to_task.t_mutex);
- return -1;
+ return 0;
}
int
taskqueue_cancel_timeout(struct workqueue *queue,
struct timeout_task *timeout_task, u_int *pendp)
{
+ mutex_enter(&timeout_task->to_task.t_mutex);
+ callout_stop(&timeout_task->to_callout);
+ timeout_task->to_scheduled = 0;
+ mutex_exit(&timeout_task->to_task.t_mutex);
+
// printf ("taskqueue_cancel_timeout called\n");
+
return 0;
}
Home |
Main Index |
Thread Index |
Old Index