From 32d530ab3cb061bf8a332c015c71a50b7a4d018e Mon Sep 17 00:00:00 2001 From: rlibby Date: Wed, 19 Feb 2020 04:46:41 +0000 Subject: [PATCH] powerpc: unconditionally mark SLB zones UMA_ZONE_CONTIG PR: 244118 Reported by: Francis Little Tested by: Francis Little, Mark Millard Reviewed by: markj Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D23729 --- sys/powerpc/aim/slb.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/sys/powerpc/aim/slb.c b/sys/powerpc/aim/slb.c index ab9dde4ee69b..5a9971a12cbf 100644 --- a/sys/powerpc/aim/slb.c +++ b/sys/powerpc/aim/slb.c @@ -523,18 +523,12 @@ slb_uma_real_alloc(uma_zone_t zone, vm_size_t bytes, int domain, static void slb_zone_init(void *dummy) { - uint32_t allocf_flags; - - allocf_flags = 0; - if (platform_real_maxaddr() != VM_MAX_ADDRESS) - allocf_flags = UMA_ZONE_CONTIG; - slbt_zone = uma_zcreate("SLB tree node", sizeof(struct slbtnode), NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, - allocf_flags | UMA_ZONE_VM); + UMA_ZONE_CONTIG | UMA_ZONE_VM); slb_cache_zone = uma_zcreate("SLB cache", (n_slbs + 1)*sizeof(struct slb *), NULL, NULL, NULL, NULL, - UMA_ALIGN_PTR, allocf_flags | UMA_ZONE_VM); + UMA_ALIGN_PTR, UMA_ZONE_CONTIG | UMA_ZONE_VM); if (platform_real_maxaddr() != VM_MAX_ADDRESS) { uma_zone_set_allocf(slb_cache_zone, slb_uma_real_alloc);