HomeFreeBSD

newbus: Simplify reallocation of devices array

Description

newbus: Simplify reallocation of devices array

Simplify the complex expression down to what it is on 64-bit systems.
32-bit kernels would allocate 2 at a time. Replace all that with
reallocf which will eliminate a bunch of copies. This should be faster
and simpler on both types of kernels. In addition, transition to
M_WAITOK since this is a sleepable context.

Suggested by: jhb
Sponsored by: Netflix
Reviewed by: jhb
Differential Revision: https://reviews.freebsd.org/D47362

Details

Provenance
impAuthored on Thu, Oct 31, 10:50 PM
Reviewer
jhb
Differential Revision
D47362: newbus: Simplify reallocation of devices array
Parents
rG6baae68d7f31: release: Remove binutils
Branches
Unknown
Tags
Unknown