arm64: Simplify initialization of pc_freemask.
Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D36502
This commit is contained in:
parent
2220b66fe0
commit
c1ae7841d4
@ -2515,16 +2515,11 @@ pv_to_chunk(pv_entry_t pv)
|
||||
#define PC_FREEN 0xfffffffffffffffful
|
||||
#define PC_FREEL ((1ul << (_NPCPV % 64)) - 1)
|
||||
|
||||
static const uint64_t pc_freemask[] = { PC_FREEN, PC_FREEN,
|
||||
#if _NPCM > 3
|
||||
PC_FREEN, PC_FREEN, PC_FREEN, PC_FREEN, PC_FREEN, PC_FREEN, PC_FREEN,
|
||||
PC_FREEN,
|
||||
#endif
|
||||
PC_FREEL
|
||||
static const uint64_t pc_freemask[_NPCM] = {
|
||||
[0 ... _NPCM - 2] = PC_FREEN,
|
||||
[_NPCM - 1] = PC_FREEL
|
||||
};
|
||||
|
||||
CTASSERT(nitems(pc_freemask) == _NPCM);
|
||||
|
||||
static __inline bool
|
||||
pc_is_full(struct pv_chunk *pc)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user