VirtualBox

Changeset 24883 in vbox for trunk/src/VBox/Runtime/r0drv


Ignore:
Timestamp:
Nov 23, 2009 6:09:48 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
55147
Message:

Runtime/r0drv/linux: fix finish_wait() for Linux 2.4 kernels

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/linux/the-linux-kernel.h

    r23717 r24883  
    171171# define finish_wait(q, wait) \
    172172    do { \
    173         remove_wait_queue(q, wait); \
     173        unsigned long flags; \
    174174        set_current_state(TASK_RUNNING); \
     175        spin_lock_irqsave(&(q)->lock, flags); \
     176        list_del_init((q)->task_list); \
     177        spin_unlock_irqrestore(&(q)->lock, flags); \
    175178    } while (0)
    176179
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette