The branch main has been updated by dougm:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=4bbdabc2bd765dc3ea009c955c2679fb42a2b6c6

commit 4bbdabc2bd765dc3ea009c955c2679fb42a2b6c6
Author:     Doug Moore <do...@freebsd.org>
AuthorDate: 2024-06-24 07:14:55 +0000
Commit:     Doug Moore <do...@freebsd.org>
CommitDate: 2024-06-24 07:14:55 +0000

    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
---
 sys/dev/aic7xxx/aic79xx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/aic7xxx/aic79xx.c b/sys/dev/aic7xxx/aic79xx.c
index ab68c3d8b088..2b5015b20e41 100644
--- a/sys/dev/aic7xxx/aic79xx.c
+++ b/sys/dev/aic7xxx/aic79xx.c
@@ -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;
 

Reply via email to