aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/clk/Makefile
diff options
context:
space:
mode:
authorFrank Oltmanns <frank@oltmanns.dev>2023-06-17 15:10:41 +0200
committerStephen Boyd <sboyd@kernel.org>2023-10-12 15:05:00 -0700
commit2790e2a33aa9e0710354aaabce8ae1a92925348f (patch)
tree6f75f3d1f8a22e1688afaef7d7f2808d209e8fa9 /drivers/clk/Makefile
parentclk: fractional-divider: Improve approximation when zero based and export (diff)
downloadwireguard-linux-2790e2a33aa9e0710354aaabce8ae1a92925348f.tar.xz
wireguard-linux-2790e2a33aa9e0710354aaabce8ae1a92925348f.zip
clk: fractional-divider: tests: Add test suite for edge cases
In light of the recent discovery that the fractional divisor approximation does not utilize the full available range for clocks that are flagged CLK_FRAC_DIVIDER_ZERO_BASED [1], implement tests for the edge cases of this clock type. Signed-off-by: Frank Oltmanns <frank@oltmanns.dev> Link: https://lore.kernel.org/lkml/20230529133433.56215-1-frank@oltmanns.dev [1] Link: https://lore.kernel.org/r/20230617131041.18313-3-frank@oltmanns.dev [sboyd@kernel.org: Rename suite and tests slightly, drop unused includes, store parent rate to compare instead of repeating equation] Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/Makefile')
-rw-r--r--drivers/clk/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile
index 18969cbd4bb1..fde9ceb53ce4 100644
--- a/drivers/clk/Makefile
+++ b/drivers/clk/Makefile
@@ -12,6 +12,7 @@ obj-$(CONFIG_COMMON_CLK) += clk-multiplier.o
obj-$(CONFIG_COMMON_CLK) += clk-mux.o
obj-$(CONFIG_COMMON_CLK) += clk-composite.o
obj-$(CONFIG_COMMON_CLK) += clk-fractional-divider.o
+obj-$(CONFIG_CLK_FD_KUNIT_TEST) += clk-fractional-divider_test.o
obj-$(CONFIG_COMMON_CLK) += clk-gpio.o
ifeq ($(CONFIG_OF), y)
obj-$(CONFIG_COMMON_CLK) += clk-conf.o