1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00

Do nothing if requested clk frequency is already correct.

Reviewed by: mmel
This commit is contained in:
Alexander Kabaev 2016-03-27 23:19:20 +00:00
parent 05e7782363
commit 19a8851f7b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=297328

View File

@ -818,6 +818,10 @@ clknode_set_freq(struct clknode *clknode, uint64_t freq, int flags,
/* We have exclusive topology lock, node lock is not needed. */
CLK_TOPO_XASSERT();
/* Check for no change */
if (clknode->freq == freq)
return (0);
parent_freq = 0;
/*