VirtualBox

Changeset 8908 for trunk

Show
Ignore:
Timestamp:
05/19/08 11:45:02 (6 months ago)
Author:
vboxsync
Message:

Determined affinity mask too late. Moved up.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/VBox/HostDrivers/Support/win/SUPDrv-win.cpp

    r8837 r8908  
    515515                pDevExt->ulGipTimerInterval = ulClockInterval / 10000; /* ms */ 
    516516 
     517                /* Note: We need to register a callback handler for added cpus (only available in win2k8: KeRegisterProcessorChangeCallback) */ 
     518                /* Note: We are not allowed to call KeQueryActiveProcessors at DPC_LEVEL, so we now assume cpu affinity mask does NOT change. */ 
     519                pDevExt->uAffinityMask = KeQueryActiveProcessors(); 
     520 
    517521                /* 
    518522                 * Call common initialization routine. 
     
    536540                    KeSetTargetProcessorDpc(&pDevExt->aGipCpuDpcs[i], i); 
    537541                } 
    538  
    539                 /* Note: We need to register a callback handler for added cpus (only available in win2k8: KeRegisterProcessorChangeCallback) */ 
    540                 /* Note: We are not allowed to call KeQueryActiveProcessors at DPC_LEVEL, so we now assume cpu affinity mask does NOT change. */ 
    541                 pDevExt->uAffinityMask = KeQueryActiveProcessors(); 
    542542 
    543543                dprintf(("VBoxDrvNtGipInit: ulClockFreq=%ld ulClockInterval=%ld ulClockIntervalActual=%ld Phys=%x%08x\n", 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy