VirtualBox

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


Ignore:
Timestamp:
Sep 23, 2010 12:12:54 PM (14 years ago)
Author:
vboxsync
Message:

timer-r0drv-linux.c: incorrect check for cpu migration.

File:
1 edited

Legend:

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

    r32707 r32711  
    599599     * Check for unwanted migration.
    600600     */
    601     if (   pTimer->fAllCpus
    602         && RT_LIKELY((RTCPUID)(pSubTimer - &pTimer->aSubTimers[0]) == RTMpCpuId()))
     601    if (   (pTimer->fSpecificCpu || pTimer->fAllCpus)
     602        && RT_UNLIKELY((RTCPUID)(pSubTimer - &pTimer->aSubTimers[0]) != RTMpCpuId()))
    603603    {
    604604        rtTimerLnxCallbackHandleMigration(pTimer, pSubTimer);
     
    686686     * Check for unwanted migration.
    687687     */
    688     if (   pTimer->fAllCpus
    689         && RT_LIKELY((RTCPUID)(pSubTimer - &pTimer->aSubTimers[0]) == RTMpCpuId()))
     688    if (   (pTimer->fSpecificCpu || pTimer->fAllCpus)
     689        && RT_UNLIKELY((RTCPUID)(pSubTimer - &pTimer->aSubTimers[0]) != RTMpCpuId()))
    690690    {
    691691        rtTimerLnxCallbackHandleMigration(pTimer, pSubTimer);
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