diff options
Diffstat (limited to 'include/linux/clk.h')
-rw-r--r-- | include/linux/clk.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/linux/clk.h b/include/linux/clk.h index 9a6d04524b1a..0dd91148165e 100644 --- a/include/linux/clk.h +++ b/include/linux/clk.h | |||
@@ -82,6 +82,23 @@ int clk_notifier_register(struct clk *clk, struct notifier_block *nb); | |||
82 | 82 | ||
83 | int clk_notifier_unregister(struct clk *clk, struct notifier_block *nb); | 83 | int clk_notifier_unregister(struct clk *clk, struct notifier_block *nb); |
84 | 84 | ||
85 | /** | ||
86 | * clk_get_accuracy - obtain the clock accuracy in ppb (parts per billion) | ||
87 | * for a clock source. | ||
88 | * @clk: clock source | ||
89 | * | ||
90 | * This gets the clock source accuracy expressed in ppb. | ||
91 | * A perfect clock returns 0. | ||
92 | */ | ||
93 | long clk_get_accuracy(struct clk *clk); | ||
94 | |||
95 | #else | ||
96 | |||
97 | static inline long clk_get_accuracy(struct clk *clk) | ||
98 | { | ||
99 | return -ENOTSUPP; | ||
100 | } | ||
101 | |||
85 | #endif | 102 | #endif |
86 | 103 | ||
87 | /** | 104 | /** |