[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <170204733604.342318.17962213281334041105.b4-ty@kernel.org>
Date: Fri, 8 Dec 2023 06:55:14 -0800
From: Bjorn Andersson <andersson@...nel.org>
To: Arnd Bergmann <arnd@...nel.org>
Cc: Arnd Bergmann <arnd@...db.de>, Andy Gross <agross@...nel.org>,
Konrad Dybcio <konrad.dybcio@...aro.org>,
Stephen Boyd <swboyd@...omium.org>,
Uwe Kleine-König
<u.kleine-koenig@...gutronix.de>, linux-arm-msm@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: (subset) [PATCH 1/2] soc: qcom: stats: fix 64-bit division
On Wed, 06 Dec 2023 13:37:06 +0100, Arnd Bergmann wrote:
> Unguarded 64-bit division is not allowed on 32-bit kernels because this
> is very slow. The result of trying anyway is a link failure:
>
> arm-linux-gnueabi-ld: drivers/soc/qcom/qcom_stats.o: in function `qcom_ddr_stats_show':
> qcom_stats.c:(.text+0x334): undefined reference to `__aeabi_uldivmod'
>
> As this function is only used for debugging and not performance critical,
> rewrite it to use div_u64() instead. ARCH_TIMER_FREQ is a multiple of
> MSEC_PER_SEC anyway, so there is no loss in precisison.
>
> [...]
Applied, thanks!
[1/2] soc: qcom: stats: fix 64-bit division
commit: 73380e2573c34a45e01786750a4a2efafc2248bd
Best regards,
--
Bjorn Andersson <andersson@...nel.org>
Powered by blists - more mailing lists