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:
parent
05e7782363
commit
19a8851f7b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=297328
@ -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;
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user