Do nothing if requested clk frequency is already correct.

Reviewed by: mmel
This commit is contained in:
kan 2016-03-27 23:19:20 +00:00
parent 2874cb104b
commit 9ae637599c

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;
/*