VirtualBox

Changeset 44451 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Jan 30, 2013 7:58:43 AM (12 years ago)
Author:
vboxsync
Message:

BUGZ:6570 Add comment.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/linux/spinlock-r0drv-linux.c

    r44443 r44451  
    9595#endif
    9696
     97    /*
     98       PLEASE DO NOT MODIFY THE NEXT FOUR LINES OF CODE!
     99
     100       We use this approach in order to split RTSPINLOCK_FLAGS_INTERRUPT_UNSAFE and
     101       RTSPINLOCK_FLAGS_INTERRUPT_SAFE spinlocks into separated locking classes when
     102       CONFIG_PROVE_LOCKING kernel option is enabled. Using single spin_lock_init()
     103       call will trigger kernel warning regarding to incorrect spinlock usage.
     104     */
    97105    if (fFlags == RTSPINLOCK_FLAGS_INTERRUPT_UNSAFE)
    98106        spin_lock_init(&pThis->Spinlock);
Note: See TracChangeset for help on using the changeset viewer.

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