- Timestamp:
- Sep 15, 2007 2:09:16 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/linux/SUPDrv-linux.c
r4811 r4827 1600 1600 local_irq_save(SavedFlags); 1601 1601 1602 ulNow = jiffies; 1602 1603 pDevExt = (PSUPDRVDEVEXT)ulUser; 1603 1604 pGip = pDevExt->pGip; 1604 ulNow = jiffies;1605 1605 1606 1606 #ifdef CONFIG_SMP … … 1632 1632 supdrvGipUpdate(pDevExt->pGip, u64Monotime); 1633 1633 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)); 1635 1635 1636 1636 local_irq_restore(SavedFlags); … … 1651 1651 uint64_t u64Monotime; 1652 1652 unsigned long SavedFlags; 1653 unsigned long ulNow; 1653 1654 1654 1655 local_irq_save(SavedFlags); 1655 1656 1657 ulNow = jiffies; 1656 1658 pDevExt = &g_DevExt; 1657 1659 pGip = pDevExt->pGip; … … 1662 1664 if (RT_LIKELY(iTimerCPU == iCPU)) 1663 1665 { 1664 unsigned long ulNow = jiffies;1665 1666 unsigned long ulDiff = ulNow - pDevExt->aCPUs[iCPU].ulLastJiffies; 1666 1667 pDevExt->aCPUs[iCPU].ulLastJiffies = ulNow; … … 1674 1675 supdrvGipUpdatePerCpu(pGip, u64Monotime, iCPU); 1675 1676 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)); 1677 1678 } 1678 1679 else
Note:
See TracChangeset
for help on using the changeset viewer.