Deleted Added
full compact
26c26
< * $FreeBSD: head/sys/vm/uma_int.h 94631 2002-04-14 01:56:25Z jeff $
---
> * $FreeBSD: head/sys/vm/uma_int.h 95758 2002-04-29 23:45:41Z jeff $
287,289c287,296
< #define ZONE_LOCK_INIT(z) \
< mtx_init(&(z)->uz_lock, (z)->uz_name, "UMA zone", \
< MTX_DEF | MTX_DUPOK)
---
> #define ZONE_LOCK_INIT(z, lc) \
> do { \
> if ((lc)) \
> mtx_init(&(z)->uz_lock, (z)->uz_name, \
> (z)->uz_name, MTX_DEF | MTX_DUPOK); \
> else \
> mtx_init(&(z)->uz_lock, (z)->uz_name, \
> "UMA zone", MTX_DEF | MTX_DUPOK); \
> } while (0)
>
294,296c301,311
< #define CPU_LOCK_INIT(z, cpu) \
< mtx_init(&(z)->uz_cpu[(cpu)].uc_lock, (z)->uz_lname, "UMA cpu", \
< MTX_DEF | MTX_DUPOK)
---
> #define CPU_LOCK_INIT(z, cpu, lc) \
> do { \
> if ((lc)) \
> mtx_init(&(z)->uz_cpu[(cpu)].uc_lock, \
> (z)->uz_lname, (z)->uz_lname, \
> MTX_DEF | MTX_DUPOK); \
> else \
> mtx_init(&(z)->uz_cpu[(cpu)].uc_lock, \
> (z)->uz_lname, "UMA cpu", \
> MTX_DEF | MTX_DUPOK); \
> } while (0)