diff options
author | des <des@FreeBSD.org> | 2008-10-23 15:53:51 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2008-10-23 15:53:51 +0000 |
commit | 66f807ed8b3634dc73d9f7526c484e43f094c0ee (patch) | |
tree | 21e792ce590e1bcf9b343890605a1b4c6a9016b3 /sys/dev/hwpmc/hwpmc_amd.c | |
parent | a779c60ce0a41cd14710a8a12cfa22955108b27a (diff) | |
download | FreeBSD-src-66f807ed8b3634dc73d9f7526c484e43f094c0ee.zip FreeBSD-src-66f807ed8b3634dc73d9f7526c484e43f094c0ee.tar.gz |
Retire the MALLOC and FREE macros. They are an abomination unto style(9).
MFC after: 3 months
Diffstat (limited to 'sys/dev/hwpmc/hwpmc_amd.c')
-rw-r--r-- | sys/dev/hwpmc/hwpmc_amd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/hwpmc/hwpmc_amd.c b/sys/dev/hwpmc/hwpmc_amd.c index 4477173..fd4c5bc 100644 --- a/sys/dev/hwpmc/hwpmc_amd.c +++ b/sys/dev/hwpmc/hwpmc_amd.c @@ -838,7 +838,7 @@ amd_init(int cpu) PMCDBG(MDP,INI,1,"amd-init cpu=%d", cpu); - MALLOC(pcs, struct amd_cpu *, sizeof(struct amd_cpu), M_PMC, + pcs = malloc(sizeof(struct amd_cpu), M_PMC, M_WAITOK|M_ZERO); phw = &pcs->pc_amdpmcs[0]; @@ -911,7 +911,7 @@ amd_cleanup(int cpu) #endif pmc_pcpu[cpu] = NULL; - FREE(pcs, M_PMC); + free(pcs, M_PMC); return 0; } @@ -960,7 +960,7 @@ pmc_amd_initialize(void) amd_pmc_class = class; #endif - MALLOC(pmc_mdep, struct pmc_mdep *, sizeof(struct pmc_mdep), + pmc_mdep = malloc(sizeof(struct pmc_mdep), M_PMC, M_WAITOK|M_ZERO); pmc_mdep->pmd_cputype = cputype; |