Skip to content

Commit

Permalink
Do not disable interrupts when building topology
Browse files Browse the repository at this point in the history
  • Loading branch information
nealsid committed Sep 9, 2022
1 parent adce380 commit b08ecac
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/MacMSRDriver/PcmMsr/PcmMsr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ asm volatile ("cpuid" : "=a" (a), "=b" (b), "=c" (c), "=d" (d) : "a" (func1), "c
extern "C" {
extern void mp_rendezvous_no_intrs(void (*func)(void *),
void *arg);
extern void mp_rendezvous(void (*setup_func)(void *),
void (*action_func)(void *),
void (*teardown_func)(void *),
void *arg);


extern int cpu_number(void);
}

Expand Down Expand Up @@ -184,7 +190,10 @@ IOReturn PcmMsrDriverClassName::buildTopology(topologyEntry* odata, uint32_t inp
return kIOReturnNoMemory;
}

mp_rendezvous_no_intrs(cpuGetTopoData, (void*)topologies);
mp_rendezvous(nullptr,
cpuGetTopoData,
nullptr,
(void*)topologies);

for(uint32_t i = 0; i < num_cores && i < input_num_cores; i++)
{
Expand Down

0 comments on commit b08ecac

Please sign in to comment.