VirtualBox

Changeset 44579 in vbox for trunk


Ignore:
Timestamp:
Feb 7, 2013 11:03:25 AM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
83654
Message:

BUGZ:6602 Reverted r83596.

Location:
trunk/src/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/linux/Makefile

    r44544 r44579  
    271271endif
    272272
    273 # Uncomment this in order to avoid spinlock checker
    274 # disabling when CONFIG_PROVE_LOCKING is enabled
    275 #KFLAGS += -DDO_NOT_DISABLE_PROVE_LOCKING
    276 
    277273# 2.6 and later
    278274MODULE_EXT    := ko
  • trunk/src/VBox/Runtime/r0drv/linux/spinlock-r0drv-linux.c

    r44544 r44579  
    9595#endif
    9696
    97 #if defined(CONFIG_PROVE_LOCKING) && defined(DO_NOT_DISABLE_PROVE_LOCKING)
    98     /*
    99       PLEASE DO NOT MODIFY THE NEXT FOUR LINES OF CODE!
    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     */
    105     if (fFlags == RTSPINLOCK_FLAGS_INTERRUPT_UNSAFE)
    106         spin_lock_init(&pThis->Spinlock);
    107     else
    108         spin_lock_init(&pThis->Spinlock);
    109 #else
    11097    spin_lock_init(&pThis->Spinlock);
    111 #endif
    11298
    11399    *pSpinlock = pThis;
     
    145131              ("pThis=%p u32Magic=%08x\n", pThis, pThis ? (int)pThis->u32Magic : 0));
    146132
    147 #if defined(CONFIG_PROVE_LOCKING) && !defined(DO_NOT_DISABLE_PROVE_LOCKING)
     133#if defined(CONFIG_PROVE_LOCKING) && !defined(RT_STRICT)
    148134    lockdep_off();
    149135#endif
     
    156142    else
    157143        spin_lock(&pThis->Spinlock);
    158 #if defined(CONFIG_PROVE_LOCKING) && !defined(DO_NOT_DISABLE_PROVE_LOCKING)
     144#if defined(CONFIG_PROVE_LOCKING) && !defined(RT_STRICT)
    159145    lockdep_on();
    160146#endif
     
    173159    RT_ASSERT_PREEMPT_CPUID_SPIN_RELEASE(pThis);
    174160
    175 #if defined(CONFIG_PROVE_LOCKING) && !defined(DO_NOT_DISABLE_PROVE_LOCKING)
     161#if defined(CONFIG_PROVE_LOCKING) && !defined(RT_STRICT)
    176162    lockdep_off();
    177163#endif
     
    184170    else
    185171        spin_unlock(&pThis->Spinlock);
    186 #if defined(CONFIG_PROVE_LOCKING) && !defined(DO_NOT_DISABLE_PROVE_LOCKING)
     172#if defined(CONFIG_PROVE_LOCKING) && !defined(RT_STRICT)
    187173    lockdep_on();
    188174#endif
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