VirtualBox

Changeset 4827 in vbox for trunk/src


Ignore:
Timestamp:
Sep 15, 2007 2:09:16 PM (17 years ago)
Author:
vboxsync
Message:

fixed for high ksoftireq load.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/linux/SUPDrv-linux.c

    r4811 r4827  
    16001600    local_irq_save(SavedFlags);
    16011601
     1602    ulNow   = jiffies;
    16021603    pDevExt = (PSUPDRVDEVEXT)ulUser;
    16031604    pGip    = pDevExt->pGip;
    1604     ulNow   = jiffies;
    16051605
    16061606#ifdef CONFIG_SMP
     
    16321632        supdrvGipUpdate(pDevExt->pGip, u64Monotime);
    16331633    if (RT_LIKELY(!pDevExt->fGIPSuspended))
    1634         mod_timer(&g_GipTimer, ulNow + (HZ <= 1000 ? 0 : ONE_MSEC_IN_JIFFIES));
     1634        mod_timer(&g_GipTimer, ulNow + (HZ <= 1000 ? 1 : ONE_MSEC_IN_JIFFIES));
    16351635
    16361636    local_irq_restore(SavedFlags);
     
    16511651    uint64_t            u64Monotime;
    16521652    unsigned long       SavedFlags;
     1653    unsigned long       ulNow;
    16531654
    16541655    local_irq_save(SavedFlags);
    16551656
     1657    ulNow   = jiffies;
    16561658    pDevExt = &g_DevExt;
    16571659    pGip    = pDevExt->pGip;
     
    16621664        if (RT_LIKELY(iTimerCPU == iCPU))
    16631665        {
    1664             unsigned long   ulNow  = jiffies;
    16651666            unsigned long   ulDiff = ulNow - pDevExt->aCPUs[iCPU].ulLastJiffies;
    16661667            pDevExt->aCPUs[iCPU].ulLastJiffies = ulNow;
     
    16741675                supdrvGipUpdatePerCpu(pGip, u64Monotime, iCPU);
    16751676            if (RT_LIKELY(!pDevExt->fGIPSuspended))
    1676                 mod_timer(&pDevExt->aCPUs[iCPU].Timer, ulNow + (HZ <= 1000 ? 0 : ONE_MSEC_IN_JIFFIES));
     1677                mod_timer(&pDevExt->aCPUs[iCPU].Timer, ulNow + (HZ <= 1000 ? 1 : ONE_MSEC_IN_JIFFIES));
    16771678        }
    16781679        else
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