Use M_WAITOK in init_hwpmc().

No functional change intended.

MFC after:	2 weeks
This commit is contained in:
Mark Johnston 2018-10-27 18:48:49 +00:00
parent 9f1abe3df4
commit 4aed5937db
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=339820

View File

@ -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);