/* This function will remove a node from the wait queue.  */
void rt_wqueue_remove(struct rt_wqueue_node *node)
/* This function will remove a node from the wait queue.  */
void rt_wqueue_remove(struct rt_wqueue_node *node)
{
    rt_base_t level;
    RT_ASSERT(node->wqueue != RT_NULL);
    level = rt_spin_lock_irqsave(&(node->wqueue->spinlock));
    rt_list_remove(&(node->list));
    rt_spin_unlock_irqrestore(&(node->wqueue->spinlock), level);
}