aic7xxx: use rounddown_pow_of_two

Use the roundown_pow_of_two macro in place of an expression.

Reviewed by:	alc, markj
Differential Revision:	https://reviews.freebsd.org/D45536
This commit is contained in:
Doug Moore 2024-06-24 02:14:55 -05:00
parent c8b0c33b03
commit 4bbdabc2bd

View File

@ -8593,7 +8593,7 @@ ahd_loadseq(struct ahd_softc *ahd)
if (sg_prefetch_align == 0)
sg_prefetch_align = 8;
/* Round down to the nearest power of 2. */
sg_prefetch_align = 1 << ilog2(sg_prefetch_align);
sg_prefetch_align = rounddown_pow_of_two(sg_prefetch_align);
cacheline_mask = sg_prefetch_align - 1;