1STRUCT CLK_NOTIFIER_(9) Clock Framework STRUCT CLK_NOTIFIER_(9)
2
3
4
6 struct_clk_notifier_data - rate data to pass to the notifier callback
7
9 struct clk_notifier_data {
10 struct clk * clk;
11 unsigned long old_rate;
12 unsigned long new_rate;
13 };
14
16 clk
17 struct clk * being changed
18
19 old_rate
20 previous rate of this clk
21
22 new_rate
23 new rate of this clk
24
26 For a pre-notifier, old_rate is the clk's rate before this rate change,
27 and new_rate is what the rate will be in the future. For a
28 post-notifier, old_rate and new_rate are both set to the clk's current
29 rate (this was done to optimize the implementation).
30
32Kernel Hackers Manual 3.10 June 2019 STRUCT CLK_NOTIFIER_(9)