mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-26 22:23:08 +00:00
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:
parent
c8b0c33b03
commit
4bbdabc2bd
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user