commit | f99ca8f0876372788b1b6ef04b37ce650ae9c5ae | [log] [tgz] |
---|---|---|
author | Dinh Nguyen <dinguyen@kernel.org> | Tue Jan 14 10:07:25 2020 -0600 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Oct 01 13:14:33 2020 +0200 |
tree | 3b9ef1dd6a4999cc1680c0355cabfc5d61b98322 | |
parent | d4c38bfb33c2bb1c9cb6afb633fc210ae63a3337 [diff] |
clk: stratix10: use do_div() for 64-bit calculation [ Upstream commit cc26ed7be46c5f5fa45f3df8161ed7ca3c4d318c ] do_div() macro to perform u64 division and guards against overflow if the result is too large for the unsigned long return type. Signed-off-by: Dinh Nguyen <dinguyen@kernel.org> Link: https://lkml.kernel.org/r/20200114160726.19771-1-dinguyen@kernel.org Signed-off-by: Stephen Boyd <sboyd@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>