2018-09-09 16:32:37 +02:00
|
|
|
/****************************************************************************
|
2018-09-09 23:01:44 +02:00
|
|
|
* sched/wqueue/kwork_notifier.c
|
2018-09-09 16:32:37 +02:00
|
|
|
*
|
2024-09-11 13:45:11 +02:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
2020-03-11 21:23:38 +01:00
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed with
|
|
|
|
* this work for additional information regarding copyright ownership. The
|
|
|
|
* ASF licenses this file to you under the Apache License, Version 2.0 (the
|
|
|
|
* "License"); you may not use this file except in compliance with the
|
|
|
|
* License. You may obtain a copy of the License at
|
2018-09-09 16:32:37 +02:00
|
|
|
*
|
2020-03-11 21:23:38 +01:00
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
2018-09-09 16:32:37 +02:00
|
|
|
*
|
2020-03-11 21:23:38 +01:00
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
* License for the specific language governing permissions and limitations
|
|
|
|
* under the License.
|
2018-09-09 16:32:37 +02:00
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
* Included Files
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
#include <nuttx/config.h>
|
|
|
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <unistd.h>
|
2018-09-09 23:01:44 +02:00
|
|
|
#include <string.h>
|
2018-09-09 16:32:37 +02:00
|
|
|
#include <sched.h>
|
|
|
|
#include <assert.h>
|
|
|
|
|
2018-09-09 23:01:44 +02:00
|
|
|
#include <nuttx/kmalloc.h>
|
|
|
|
#include <nuttx/wqueue.h>
|
2018-09-09 16:32:37 +02:00
|
|
|
|
2018-09-11 15:22:23 +02:00
|
|
|
#include "wqueue/wqueue.h"
|
2018-09-09 16:32:37 +02:00
|
|
|
|
2018-09-09 23:01:44 +02:00
|
|
|
#ifdef CONFIG_WQUEUE_NOTIFIER
|
2018-09-09 16:32:37 +02:00
|
|
|
|
2019-12-31 16:26:14 +01:00
|
|
|
/****************************************************************************
|
|
|
|
* Private Types
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
/* This structure describes one notification list entry. It is cast-
|
|
|
|
* compatible with struct work_notifier_s. This structure is an allocated
|
|
|
|
* container for the user notification data. It is allocated because it
|
|
|
|
* must persist until the work is executed.
|
|
|
|
*/
|
|
|
|
|
|
|
|
struct work_notifier_entry_s
|
|
|
|
{
|
2024-09-14 12:15:23 +02:00
|
|
|
struct dq_entry_s entry;
|
|
|
|
|
|
|
|
/* The work structure */
|
2019-12-31 16:26:14 +01:00
|
|
|
|
|
|
|
struct work_s work; /* Used for scheduling the work */
|
|
|
|
|
|
|
|
/* User notification information */
|
|
|
|
|
|
|
|
struct work_notifier_s info; /* The notification info */
|
|
|
|
|
|
|
|
/* Additional payload needed to manage the notification */
|
|
|
|
|
2021-01-29 10:23:43 +01:00
|
|
|
uint32_t key; /* Unique ID for the notification */
|
2019-12-31 16:26:14 +01:00
|
|
|
};
|
|
|
|
|
2018-09-09 16:32:37 +02:00
|
|
|
/****************************************************************************
|
|
|
|
* Private Data
|
|
|
|
****************************************************************************/
|
|
|
|
|
2019-12-31 16:26:14 +01:00
|
|
|
/* This is a doubly linked list of free notifications. */
|
|
|
|
|
|
|
|
static dq_queue_t g_notifier_free;
|
|
|
|
|
2018-09-12 16:57:06 +02:00
|
|
|
/* This is a doubly linked list of pending notifications. When an event
|
2018-09-09 16:32:37 +02:00
|
|
|
* occurs available, *all* of the waiters for that event in this list will
|
2018-09-11 15:22:23 +02:00
|
|
|
* be notified and the entry will be freed. If there are multiple waiters
|
|
|
|
* for some resource, then only the first to execute thread will get the
|
2018-09-09 23:01:44 +02:00
|
|
|
* resource. Lower priority threads will need to call work_notifier_setup()
|
2018-09-09 16:32:37 +02:00
|
|
|
* once again.
|
|
|
|
*/
|
|
|
|
|
2018-09-12 16:57:06 +02:00
|
|
|
static dq_queue_t g_notifier_pending;
|
2018-09-09 16:32:37 +02:00
|
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
* Private Functions
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
/****************************************************************************
|
2018-09-09 23:01:44 +02:00
|
|
|
* Name: work_notifier_find
|
2018-09-09 16:32:37 +02:00
|
|
|
*
|
|
|
|
* Description:
|
|
|
|
* Given a unique key for notification, find the corresponding notification
|
|
|
|
* structure in the pending notification list.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
2021-01-29 10:23:43 +01:00
|
|
|
static FAR struct work_notifier_entry_s *work_notifier_find(uint32_t key)
|
2018-09-09 16:32:37 +02:00
|
|
|
{
|
2018-09-09 23:01:44 +02:00
|
|
|
FAR struct work_notifier_entry_s *notifier;
|
2018-09-12 16:57:06 +02:00
|
|
|
FAR dq_entry_t *entry;
|
2018-09-09 16:32:37 +02:00
|
|
|
|
|
|
|
/* Find the entry matching this key in the g_notifier_pending list. */
|
|
|
|
|
2018-09-12 16:57:06 +02:00
|
|
|
for (entry = dq_peek(&g_notifier_pending);
|
|
|
|
entry != NULL;
|
|
|
|
entry = dq_next(entry))
|
2018-09-09 16:32:37 +02:00
|
|
|
{
|
2018-09-12 16:57:06 +02:00
|
|
|
notifier = (FAR struct work_notifier_entry_s *)entry;
|
|
|
|
|
2018-09-09 16:32:37 +02:00
|
|
|
/* Is this the one we were looking for? */
|
|
|
|
|
2021-01-29 10:23:43 +01:00
|
|
|
if (notifier->key == key)
|
2018-09-09 16:32:37 +02:00
|
|
|
{
|
2018-09-12 16:57:06 +02:00
|
|
|
/* Yes.. return a reference to it */
|
2018-09-09 16:32:37 +02:00
|
|
|
|
|
|
|
return notifier;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
/****************************************************************************
|
2018-09-09 23:01:44 +02:00
|
|
|
* Name: work_notifier_key
|
2018-09-09 16:32:37 +02:00
|
|
|
*
|
|
|
|
* Description:
|
|
|
|
* Generate a unique key for this notification.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
2021-01-29 10:23:43 +01:00
|
|
|
static uint32_t work_notifier_key(void)
|
2018-09-09 16:32:37 +02:00
|
|
|
{
|
2021-01-29 10:23:43 +01:00
|
|
|
static uint32_t notifier_key;
|
2018-09-09 16:32:37 +02:00
|
|
|
|
2021-01-29 10:23:43 +01:00
|
|
|
if (++notifier_key == 0)
|
2018-09-09 16:32:37 +02:00
|
|
|
{
|
2021-01-29 10:23:43 +01:00
|
|
|
notifier_key = 1;
|
2018-09-09 16:32:37 +02:00
|
|
|
}
|
|
|
|
|
2021-01-29 10:23:43 +01:00
|
|
|
return notifier_key;
|
2018-09-09 16:32:37 +02:00
|
|
|
}
|
|
|
|
|
2019-12-31 16:26:14 +01:00
|
|
|
/****************************************************************************
|
|
|
|
* Name: work_notifier_worker
|
|
|
|
*
|
|
|
|
* Description:
|
|
|
|
* Forward to the real worker and free the notification.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
static void work_notifier_worker(FAR void *arg)
|
|
|
|
{
|
|
|
|
FAR struct work_notifier_entry_s *notifier =
|
|
|
|
(FAR struct work_notifier_entry_s *)arg;
|
2021-01-28 14:51:39 +01:00
|
|
|
irqstate_t flags;
|
2019-12-31 16:26:14 +01:00
|
|
|
|
|
|
|
/* Forward to the real worker */
|
|
|
|
|
|
|
|
notifier->info.worker(notifier->info.arg);
|
|
|
|
|
2021-01-28 14:51:39 +01:00
|
|
|
/* Disable interrupts very briefly. */
|
|
|
|
|
|
|
|
flags = enter_critical_section();
|
|
|
|
|
2024-09-10 14:43:42 +02:00
|
|
|
/* Remove the notification from the pending list */
|
|
|
|
|
2024-09-14 12:15:23 +02:00
|
|
|
dq_rem(¬ifier->entry, &g_notifier_pending);
|
2024-09-10 14:43:42 +02:00
|
|
|
|
2019-12-31 16:26:14 +01:00
|
|
|
/* Put the notification to the free list */
|
|
|
|
|
2024-09-14 12:15:23 +02:00
|
|
|
dq_addlast(¬ifier->entry, &g_notifier_free);
|
2021-01-28 14:51:39 +01:00
|
|
|
|
|
|
|
leave_critical_section(flags);
|
2019-12-31 16:26:14 +01:00
|
|
|
}
|
|
|
|
|
2018-09-09 16:32:37 +02:00
|
|
|
/****************************************************************************
|
|
|
|
* Public Functions
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
/****************************************************************************
|
2018-09-09 23:01:44 +02:00
|
|
|
* Name: work_notifier_setup
|
2018-09-09 16:32:37 +02:00
|
|
|
*
|
|
|
|
* Description:
|
2018-09-11 15:22:23 +02:00
|
|
|
* Set up to provide a notification when an event occurs.
|
2018-09-09 19:57:25 +02:00
|
|
|
*
|
2018-09-09 16:32:37 +02:00
|
|
|
* Input Parameters:
|
2018-09-09 23:01:44 +02:00
|
|
|
* info - Describes the work notification.
|
2018-09-09 16:32:37 +02:00
|
|
|
*
|
|
|
|
* Returned Value:
|
|
|
|
* > 0 - The key which may be used later in a call to
|
2018-09-09 23:01:44 +02:00
|
|
|
* work_notifier_teardown().
|
2018-09-09 16:32:37 +02:00
|
|
|
* == 0 - Not used (reserved for wrapper functions).
|
2018-09-11 15:22:23 +02:00
|
|
|
* < 0 - An unexpected error occurred and no notification will be sent.
|
|
|
|
* The returned value is a negated errno value that indicates the
|
2018-09-09 16:32:37 +02:00
|
|
|
* nature of the failure.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
2018-09-09 23:01:44 +02:00
|
|
|
int work_notifier_setup(FAR struct work_notifier_s *info)
|
2018-09-09 16:32:37 +02:00
|
|
|
{
|
2018-09-10 14:29:51 +02:00
|
|
|
FAR struct work_notifier_entry_s *notifier;
|
2021-01-28 14:51:39 +01:00
|
|
|
irqstate_t flags;
|
2018-09-09 16:32:37 +02:00
|
|
|
int ret;
|
|
|
|
|
2018-09-11 15:22:23 +02:00
|
|
|
DEBUGASSERT(info != NULL && info->worker != NULL);
|
2018-09-12 16:57:06 +02:00
|
|
|
DEBUGASSERT(info->qid == HPWORK || info->qid == LPWORK);
|
2018-09-11 15:22:23 +02:00
|
|
|
|
2021-01-28 14:51:39 +01:00
|
|
|
/* Disable interrupts very briefly. */
|
2018-09-09 16:32:37 +02:00
|
|
|
|
2021-01-28 14:51:39 +01:00
|
|
|
flags = enter_critical_section();
|
2018-09-09 16:32:37 +02:00
|
|
|
|
2019-12-31 16:26:14 +01:00
|
|
|
/* Try to get the entry from the free list */
|
|
|
|
|
2020-03-11 21:23:38 +01:00
|
|
|
notifier = (FAR struct work_notifier_entry_s *)
|
|
|
|
dq_remfirst(&g_notifier_free);
|
|
|
|
|
2021-01-28 14:51:39 +01:00
|
|
|
leave_critical_section(flags);
|
|
|
|
|
2019-12-31 16:26:14 +01:00
|
|
|
if (notifier == NULL)
|
|
|
|
{
|
|
|
|
/* Allocate a new notification entry */
|
|
|
|
|
|
|
|
notifier = kmm_malloc(sizeof(struct work_notifier_entry_s));
|
|
|
|
}
|
2018-09-09 16:32:37 +02:00
|
|
|
|
|
|
|
if (notifier == NULL)
|
|
|
|
{
|
2018-09-10 14:29:51 +02:00
|
|
|
ret = -ENOMEM;
|
2018-09-09 16:32:37 +02:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2020-01-22 06:38:30 +01:00
|
|
|
/* Initialize the work structure */
|
|
|
|
|
|
|
|
memset(¬ifier->work, 0, sizeof(notifier->work));
|
|
|
|
|
2018-09-09 23:01:44 +02:00
|
|
|
/* Duplicate the notification info */
|
2018-09-09 16:32:37 +02:00
|
|
|
|
2018-09-10 14:29:51 +02:00
|
|
|
memcpy(¬ifier->info, info, sizeof(struct work_notifier_s));
|
2018-09-09 23:01:44 +02:00
|
|
|
|
2021-01-28 14:51:39 +01:00
|
|
|
/* Disable interrupts very briefly. */
|
|
|
|
|
|
|
|
flags = enter_critical_section();
|
|
|
|
|
2018-09-09 23:01:44 +02:00
|
|
|
/* Generate a unique key for this notification */
|
2018-09-09 16:32:37 +02:00
|
|
|
|
2018-09-12 16:57:06 +02:00
|
|
|
notifier->key = work_notifier_key();
|
2018-09-09 16:32:37 +02:00
|
|
|
|
2018-09-12 16:57:06 +02:00
|
|
|
/* Add the notification to the tail of the pending list
|
2018-09-10 01:32:10 +02:00
|
|
|
*
|
2018-09-12 16:57:06 +02:00
|
|
|
* REVISIT: Work will be processed in FIFO order. Perhaps
|
2018-09-10 01:32:10 +02:00
|
|
|
* we should should consider saving the notification is the
|
|
|
|
* order of the caller's execution priority so that the
|
|
|
|
* notifications executed in a saner order?
|
|
|
|
*/
|
2018-09-09 23:01:44 +02:00
|
|
|
|
2024-09-14 12:15:23 +02:00
|
|
|
dq_addlast(¬ifier->entry, &g_notifier_pending);
|
2019-01-27 18:02:56 +01:00
|
|
|
ret = notifier->key;
|
2021-01-28 14:51:39 +01:00
|
|
|
|
|
|
|
leave_critical_section(flags);
|
2018-09-09 16:32:37 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
/****************************************************************************
|
2018-09-09 23:01:44 +02:00
|
|
|
* Name: work_notifier_teardown
|
2018-09-09 16:32:37 +02:00
|
|
|
*
|
|
|
|
* Description:
|
2018-09-09 23:01:44 +02:00
|
|
|
* Eliminate a notification previously setup by work_notifier_setup().
|
2018-09-09 16:32:37 +02:00
|
|
|
* This function should only be called if the notification should be
|
|
|
|
* aborted prior to the notification. The notification will automatically
|
2018-09-11 15:22:23 +02:00
|
|
|
* be torn down after the notification executes.
|
2018-09-09 16:32:37 +02:00
|
|
|
*
|
|
|
|
* Input Parameters:
|
|
|
|
* key - The key value returned from a previous call to
|
2018-09-09 23:01:44 +02:00
|
|
|
* work_notifier_setup().
|
2018-09-09 16:32:37 +02:00
|
|
|
*
|
|
|
|
* Returned Value:
|
2022-05-13 12:26:42 +02:00
|
|
|
* None.
|
2018-09-09 16:32:37 +02:00
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
2022-05-13 12:26:42 +02:00
|
|
|
void work_notifier_teardown(int key)
|
2018-09-09 16:32:37 +02:00
|
|
|
{
|
2018-09-09 23:01:44 +02:00
|
|
|
FAR struct work_notifier_entry_s *notifier;
|
2021-01-28 14:51:39 +01:00
|
|
|
irqstate_t flags;
|
2018-09-09 16:32:37 +02:00
|
|
|
|
2021-01-28 14:51:39 +01:00
|
|
|
/* Disable interrupts very briefly. */
|
2018-09-09 16:32:37 +02:00
|
|
|
|
2021-01-28 14:51:39 +01:00
|
|
|
flags = enter_critical_section();
|
2018-09-09 16:32:37 +02:00
|
|
|
|
|
|
|
/* Find the entry matching this PID in the g_notifier_pending list. We
|
|
|
|
* assume that there is only one.
|
|
|
|
*/
|
|
|
|
|
2018-09-12 16:57:06 +02:00
|
|
|
notifier = work_notifier_find(key);
|
2022-05-13 12:26:42 +02:00
|
|
|
if (notifier != NULL)
|
2018-09-09 16:32:37 +02:00
|
|
|
{
|
2024-09-10 14:43:42 +02:00
|
|
|
/* Cancel the work, this may be waiting */
|
2018-09-09 16:32:37 +02:00
|
|
|
|
2024-09-10 14:43:42 +02:00
|
|
|
if (work_cancel_sync(notifier->info.qid, ¬ifier->work) != 1)
|
|
|
|
{
|
|
|
|
/* Remove the notification from the pending list */
|
2018-09-09 16:32:37 +02:00
|
|
|
|
2024-09-14 12:15:23 +02:00
|
|
|
dq_rem(¬ifier->entry, &g_notifier_pending);
|
2018-09-09 23:01:44 +02:00
|
|
|
|
2024-09-10 14:43:42 +02:00
|
|
|
/* Put the notification to the free list */
|
|
|
|
|
2024-09-14 12:15:23 +02:00
|
|
|
dq_addlast(¬ifier->entry, &g_notifier_free);
|
2024-09-10 14:43:42 +02:00
|
|
|
}
|
2018-09-09 16:32:37 +02:00
|
|
|
}
|
|
|
|
|
2021-01-28 14:51:39 +01:00
|
|
|
leave_critical_section(flags);
|
2018-09-09 16:32:37 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/****************************************************************************
|
2018-09-09 23:01:44 +02:00
|
|
|
* Name: work_notifier_signal
|
2018-09-09 16:32:37 +02:00
|
|
|
*
|
|
|
|
* Description:
|
2018-09-11 15:22:23 +02:00
|
|
|
* An event has just occurred. Notify all threads waiting for that event.
|
2018-09-09 16:32:37 +02:00
|
|
|
*
|
2018-09-09 23:01:44 +02:00
|
|
|
* When an event of interest occurs, *all* of the workers waiting for this
|
|
|
|
* event will be executed. If there are multiple workers for a resource
|
|
|
|
* then only the first to execute will get the resource. Others will
|
|
|
|
* need to call work_notifier_setup() once again.
|
2018-09-09 19:57:25 +02:00
|
|
|
*
|
2018-09-09 16:32:37 +02:00
|
|
|
* Input Parameters:
|
|
|
|
* evtype - The type of the event that just occurred.
|
|
|
|
* qualifier - Event qualifier to distinguish different cases of the
|
|
|
|
* generic event type.
|
|
|
|
*
|
|
|
|
* Returned Value:
|
|
|
|
* None.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
2018-09-09 23:01:44 +02:00
|
|
|
void work_notifier_signal(enum work_evtype_e evtype,
|
2018-09-11 15:22:23 +02:00
|
|
|
FAR void *qualifier)
|
2018-09-09 16:32:37 +02:00
|
|
|
{
|
2018-09-09 23:01:44 +02:00
|
|
|
FAR struct work_notifier_entry_s *notifier;
|
2018-09-12 16:57:06 +02:00
|
|
|
FAR dq_entry_t *entry;
|
|
|
|
FAR dq_entry_t *next;
|
2021-01-28 14:51:39 +01:00
|
|
|
irqstate_t flags;
|
2018-09-09 16:32:37 +02:00
|
|
|
|
|
|
|
/* Don't let any newly started threads block this thread until all of
|
|
|
|
* the notifications and been sent.
|
|
|
|
*/
|
|
|
|
|
2021-01-28 14:51:39 +01:00
|
|
|
flags = enter_critical_section();
|
2024-09-02 17:49:29 +02:00
|
|
|
sched_lock();
|
2018-09-09 16:32:37 +02:00
|
|
|
|
|
|
|
/* Process the notification at the head of the pending list until the
|
2019-03-01 17:50:02 +01:00
|
|
|
* pending list is empty
|
|
|
|
*/
|
2018-09-09 16:32:37 +02:00
|
|
|
|
2018-09-12 16:57:06 +02:00
|
|
|
for (entry = dq_peek(&g_notifier_pending);
|
|
|
|
entry != NULL;
|
|
|
|
entry = next)
|
2018-09-09 16:32:37 +02:00
|
|
|
{
|
2018-09-09 23:01:44 +02:00
|
|
|
FAR struct work_notifier_s *info;
|
2018-09-09 19:57:25 +02:00
|
|
|
|
2018-09-09 16:32:37 +02:00
|
|
|
/* Set up for the next time through the loop (in case the entry is
|
|
|
|
* removed from the list).
|
|
|
|
*/
|
|
|
|
|
2018-09-12 16:57:06 +02:00
|
|
|
next = entry->flink;
|
|
|
|
|
|
|
|
/* Set up some convenience pointers */
|
|
|
|
|
|
|
|
notifier = (FAR struct work_notifier_entry_s *)entry;
|
|
|
|
info = ¬ifier->info;
|
2018-09-09 16:32:37 +02:00
|
|
|
|
|
|
|
/* Check if this is the a notification request for the event that
|
|
|
|
* just occurred.
|
|
|
|
*/
|
|
|
|
|
2018-09-09 23:01:44 +02:00
|
|
|
if (info->evtype == evtype && info->qualifier == qualifier)
|
2018-09-09 16:32:37 +02:00
|
|
|
{
|
2024-09-10 14:43:42 +02:00
|
|
|
/* Mark the notification as no longer pending */
|
2018-09-09 16:32:37 +02:00
|
|
|
|
2024-09-10 14:43:42 +02:00
|
|
|
info->qualifier = NULL;
|
2018-09-09 23:01:44 +02:00
|
|
|
|
2018-09-12 16:57:06 +02:00
|
|
|
/* Schedule the work. The entire notifier entry is passed as an
|
|
|
|
* argument to the work function because that function is
|
|
|
|
* responsible for freeing the allocated memory.
|
2018-09-09 16:32:37 +02:00
|
|
|
*/
|
|
|
|
|
2020-01-02 17:49:34 +01:00
|
|
|
work_queue(info->qid, ¬ifier->work,
|
|
|
|
work_notifier_worker, entry, 0);
|
2018-09-09 16:32:37 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-09-02 17:49:29 +02:00
|
|
|
sched_unlock();
|
2021-01-28 14:51:39 +01:00
|
|
|
leave_critical_section(flags);
|
2018-09-09 16:32:37 +02:00
|
|
|
}
|
|
|
|
|
2018-09-09 23:01:44 +02:00
|
|
|
#endif /* CONFIG_WQUEUE_NOTIFIER */
|