From nobody Mon Jun 24 07:27:53 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4W70156G74z5NX99; Mon, 24 Jun 2024 07:27:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4W70153xpgz4Tfd; Mon, 24 Jun 2024 07:27:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1719214073; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UxR4oIeBaNAHqkYeHRHVHzsAb9mn4mVECbKAmJVPlsM=; b=EEide3oxwGcF7UTwmrsu+fc6nkvM5a2en2oznCtq13fvfU4JPjwCtqFO+fsFyBSv4WOzrP QpkK6VVYXhpaAIr7gRjg4oh9laDCTWzSoMsDR9ObrXTzXzWoJ39au8J0kc3kE11jB2D2NF ZbDvNemq4639L7za9iVk3DN9T3viBNu1S+SUqPp6E+4zb5W44Q6gKleDmU86cxqtYeRbz/ Umb+JKeP+79YNfVtUvAnpGHB9KfiVWXq8kSrGGIqT5xgOCh0sJTGxZ1gkR9Is1yhtA/CCH p6ulO76wPJvwaHKyVNcXf55Nf2lK6a5sSflSeLkMrVdsw8AX4oKmGV+dFbKjyg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1719214073; a=rsa-sha256; cv=none; b=L9nvoHCsZUxRPaZQUIQJDGjF83R710umHR4/qTF452zKlaNAUerS/rwLk04BsJD4GAtz+L tqoWK0lyZ4QiMqzM6tNeqhQlTlovAZ9wgDBov0FSsRoH0sj6lxX43DYQ01O4gP7pHAal2F G3kBDKIZ2LqzXtAIEoIT6oxCAgplr0zyX6Vuci7t467Bt9G7w61gOlUFCMGbatvQtTSqQd lq78gY4IFsLdm5ngAs66lG2DtIWEMF4xBH0WSUq2W6oVy+T+Cy3/Q0H7k5fF3zFmi4P7jC eBZH9JkSXzjWv6VFAg83X22O5JdOPF9qTHADQ2BXH6R5o2pvCEFMj/sGkozYyg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1719214073; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UxR4oIeBaNAHqkYeHRHVHzsAb9mn4mVECbKAmJVPlsM=; b=PaMPDtgssTJ3XrImQIUBbplA8X5T5jSiC+FjRhF/nLh4Pr1DykYC4KjuvZ72WxYJZTBz0V +R2VRpiJWIpIG2I35HoT+mG4cYDpZ9edxB8BcLsfDxF+BJzMDAAtGaqvMAlWwuoc84TvIH Pgp+CUnyVHBm3ZR8ilw3P2SOoLuuCYba/4GzFI/R9TAn+i5+GTGz9dw5rvtHtci+a4KNRb exgbblyafhQxJ2ohZXbo7fYjFXE89V51ROdHzfSo47TbtaQt5JVklYgJ/izhM5LnK45BkF k46+07/1sXuq6cj4GV6fSo2ZBd8Q0eAuaFHOT72bvEbTvBbGn9iOdXaG583w4w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4W70153QZDz17k7; Mon, 24 Jun 2024 07:27:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 45O7Rrvb044379; Mon, 24 Jun 2024 07:27:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 45O7RreX044376; Mon, 24 Jun 2024 07:27:53 GMT (envelope-from git) Date: Mon, 24 Jun 2024 07:27:53 GMT Message-Id: <202406240727.45O7RreX044376@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Doug Moore Subject: git: 4bbdabc2bd76 - main - aic7xxx: use rounddown_pow_of_two List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dougm X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4bbdabc2bd765dc3ea009c955c2679fb42a2b6c6 Auto-Submitted: auto-generated The branch main has been updated by dougm: URL: https://cgit.FreeBSD.org/src/commit/?id=4bbdabc2bd765dc3ea009c955c2679fb42a2b6c6 commit 4bbdabc2bd765dc3ea009c955c2679fb42a2b6c6 Author: Doug Moore AuthorDate: 2024-06-24 07:14:55 +0000 Commit: Doug Moore 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;