Fix class malloc init for mips and powerpc that was not converted
by r233628. Found by: monthadar, adrian MFC after: 1 week
This commit is contained in:
parent
bb98136ca2
commit
76203b349f
@ -431,11 +431,9 @@ pmc_mips_initialize()
|
||||
M_WAITOK|M_ZERO);
|
||||
|
||||
/* Just one class */
|
||||
pmc_mdep = malloc(sizeof(struct pmc_mdep) + sizeof(struct pmc_classdep),
|
||||
M_PMC, M_WAITOK|M_ZERO);
|
||||
pmc_mdep = pmc_mdep_alloc(1);
|
||||
|
||||
pmc_mdep->pmd_cputype = mips_pmc_spec.ps_cputype;
|
||||
pmc_mdep->pmd_nclass = 1;
|
||||
|
||||
pcd = &pmc_mdep->pmd_classdep[PMC_MDEP_CLASS_INDEX_MIPS];
|
||||
pcd->pcd_caps = mips_pmc_spec.ps_capabilities;
|
||||
|
@ -803,11 +803,9 @@ pmc_md_initialize()
|
||||
M_WAITOK|M_ZERO);
|
||||
|
||||
/* Just one class */
|
||||
pmc_mdep = malloc(sizeof(struct pmc_mdep) + sizeof(struct pmc_classdep),
|
||||
M_PMC, M_WAITOK|M_ZERO);
|
||||
pmc_mdep = pmc_mdep_alloc(1);
|
||||
|
||||
pmc_mdep->pmd_cputype = PMC_CPU_PPC_7450;
|
||||
pmc_mdep->pmd_nclass = 1;
|
||||
|
||||
pcd = &pmc_mdep->pmd_classdep[PMC_MDEP_CLASS_INDEX_PPC7450];
|
||||
pcd->pcd_caps = POWERPC_PMC_CAPS;
|
||||
|
Loading…
x
Reference in New Issue
Block a user