table of contents
other versions
- jessie-backports 4.9.88-1+deb9u1~bpo8+1
- stretch 4.9.144-3
CLK_ROUND_RATE(9) | Clock Framework | CLK_ROUND_RATE(9) |
NAME¶
clk_round_rate - adjust a rate to the exact rate a clock can provideSYNOPSIS¶
long
clk_round_rate(struct clk * clk,
unsigned long rate);
ARGUMENTS¶
clkclock source
rate
desired clock rate in Hz
DESCRIPTION¶
This answers the question “if I were to pass rate to clk_set_rate, what clock rate would I end up with?” without changing the hardware in any way. In other words: rate = clk_round_rate(clk, r); and: clk_set_rate(clk, r); rate = clk_get_rate(clk); are equivalent except the former does not modify the clock hardware in any way. Returns rounded clock rate in Hz, or negative errno.COPYRIGHT¶
May 2018 | Kernel Hackers Manual 4.9. |