Use M_WAITOK in init_hwpmc().
No functional change intended. MFC after: 2 weeks
This commit is contained in:
parent
9f1abe3df4
commit
4aed5937db
@ -360,9 +360,8 @@ init_hwpmc(void *dummy __unused)
|
||||
"range.\n", pmc_softevents);
|
||||
pmc_softevents = PMC_EV_DYN_COUNT;
|
||||
}
|
||||
pmc_softs = malloc(pmc_softevents * sizeof(struct pmc_soft *), M_PMCHOOKS, M_NOWAIT|M_ZERO);
|
||||
KASSERT(pmc_softs != NULL, ("cannot allocate soft events table"));
|
||||
|
||||
pmc_softs = malloc(pmc_softevents * sizeof(*pmc_softs), M_PMCHOOKS,
|
||||
M_WAITOK | M_ZERO);
|
||||
for (domain = 0; domain < NDOMAINS; domain++) {
|
||||
pmc_dom_hdrs[domain] = malloc_domain(sizeof(struct pmc_domain_buffer_header), M_PMC, domain,
|
||||
M_WAITOK|M_ZERO);
|
||||
|
Loading…
x
Reference in New Issue
Block a user