- Timestamp:
- Oct 17, 2016 11:34:18 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/win/mp-win.cpp
r64283 r64293 57 57 * Defined Constants And Macros * 58 58 *********************************************************************************************************************************/ 59 /** @def RTMPWIN_UPDATE_GIP_GLOBAL 59 /** @def RTMPWIN_UPDATE_GIP_GLOBALS 60 60 * Does lazy (re-)initialization using information provieded by GIP. */ 61 61 #ifdef IPRT_WITH_GIP_MP_INFO 62 # define RTMPWIN_UPDATE_GIP_GLOBAL () \62 # define RTMPWIN_UPDATE_GIP_GLOBALS() \ 63 63 do { RTMPWIN_UPDATE_GIP_GLOBALS_AND_GET_PGIP(); } while (0) 64 64 #else 65 # define RTMPWIN_UPDATE_GIP_GLOBAL () do { } while (0)65 # define RTMPWIN_UPDATE_GIP_GLOBALS() do { } while (0) 66 66 #endif 67 67 … … 523 523 { 524 524 RTOnce(&g_MpInitOnce, rtMpWinInitOnce, NULL); 525 RTMPWIN_UPDATE_GIP_GLOBAL ();525 RTMPWIN_UPDATE_GIP_GLOBALS(); 526 526 527 527 #ifdef IPRT_WITH_RTCPUID_AS_GROUP_AND_NUMBER … … 540 540 { 541 541 RTOnce(&g_MpInitOnce, rtMpWinInitOnce, NULL); 542 RTMPWIN_UPDATE_GIP_GLOBAL ();542 RTMPWIN_UPDATE_GIP_GLOBALS(); 543 543 544 544 if ((unsigned)iCpu < RT_ELEMENTS(g_aidRtMpWinByCpuSetIdx)) … … 568 568 RTDECL(int) RTMpSetIndexFromCpuGroupMember(uint32_t idxGroup, uint32_t idxMember) 569 569 { 570 RTOnce(&g_MpInitOnce, rtMpWinInitOnce, NULL); 571 RTMPWIN_UPDATE_GIP_GLOBALS(); 572 570 573 if (idxGroup < g_cRtMpWinMaxCpuGroups) 571 574 if (idxMember < g_aRtMpWinCpuGroups[idxGroup].cMaxCpus) … … 577 580 RTDECL(uint32_t) RTMpGetCpuGroupCounts(uint32_t idxGroup, uint32_t *pcActive) 578 581 { 582 RTOnce(&g_MpInitOnce, rtMpWinInitOnce, NULL); 583 RTMPWIN_UPDATE_GIP_GLOBALS(); 584 579 585 if (idxGroup < g_cRtMpWinMaxCpuGroups) 580 586 { … … 591 597 RTDECL(uint32_t) RTMpGetMaxCpuGroupCount(void) 592 598 { 599 RTOnce(&g_MpInitOnce, rtMpWinInitOnce, NULL); 600 RTMPWIN_UPDATE_GIP_GLOBALS(); 601 593 602 return g_cRtMpWinMaxCpuGroups; 594 603 } … … 603 612 { 604 613 RTOnce(&g_MpInitOnce, rtMpWinInitOnce, NULL); 605 #ifdef IPRT_WITH_RTCPUID_AS_GROUP_AND_NUMBER 606 RTMPWIN_UPDATE_GIP_GLOBAL(); 607 #endif 614 RTMPWIN_UPDATE_GIP_GLOBALS(); 608 615 609 616 PROCESSOR_NUMBER ProcNum; … … 643 650 { 644 651 RTOnce(&g_MpInitOnce, rtMpWinInitOnce, NULL); 652 RTMPWIN_UPDATE_GIP_GLOBALS(); 653 645 654 #ifdef IPRT_WITH_RTCPUID_AS_GROUP_AND_NUMBER 646 655 return RTMPCPUID_FROM_GROUP_AND_NUMBER(g_cRtMpWinMaxCpuGroups - 1, … … 655 664 { 656 665 RTOnce(&g_MpInitOnce, rtMpWinInitOnce, NULL); 657 RTMPWIN_UPDATE_GIP_GLOBAL ();666 RTMPWIN_UPDATE_GIP_GLOBALS(); 658 667 659 668 /* Any CPU between 0 and g_cRtMpWinMaxCpus are possible. */ … … 675 684 { 676 685 RTOnce(&g_MpInitOnce, rtMpWinInitOnce, NULL); 686 RTMPWIN_UPDATE_GIP_GLOBALS(); 677 687 678 688 return g_cRtMpWinMaxCpus; … … 683 693 { 684 694 RTOnce(&g_MpInitOnce, rtMpWinInitOnce, NULL); 695 RTMPWIN_UPDATE_GIP_GLOBALS(); 685 696 686 697 return g_cRtMpWinMaxCpuCores;
Note:
See TracChangeset
for help on using the changeset viewer.