Skip to content

Commit b08ecac

Browse files
committed
Do not disable interrupts when building topology
1 parent adce380 commit b08ecac

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/MacMSRDriver/PcmMsr/PcmMsr.cpp

+10-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ asm volatile ("cpuid" : "=a" (a), "=b" (b), "=c" (c), "=d" (d) : "a" (func1), "c
1818
extern "C" {
1919
extern void mp_rendezvous_no_intrs(void (*func)(void *),
2020
void *arg);
21+
extern void mp_rendezvous(void (*setup_func)(void *),
22+
void (*action_func)(void *),
23+
void (*teardown_func)(void *),
24+
void *arg);
25+
26+
2127
extern int cpu_number(void);
2228
}
2329

@@ -184,7 +190,10 @@ IOReturn PcmMsrDriverClassName::buildTopology(topologyEntry* odata, uint32_t inp
184190
return kIOReturnNoMemory;
185191
}
186192

187-
mp_rendezvous_no_intrs(cpuGetTopoData, (void*)topologies);
193+
mp_rendezvous(nullptr,
194+
cpuGetTopoData,
195+
nullptr,
196+
(void*)topologies);
188197

189198
for(uint32_t i = 0; i < num_cores && i < input_num_cores; i++)
190199
{

0 commit comments

Comments
 (0)