svn commit: r297328 - head/sys/dev/extres/clk

Alexander Kabaev kan at FreeBSD.org
Sun Mar 27 23:19:21 UTC 2016


Author: kan
Date: Sun Mar 27 23:19:20 2016
New Revision: 297328
URL: https://svnweb.freebsd.org/changeset/base/297328

Log:
  Do nothing if requested clk frequency is already correct.
  
  Reviewed by: mmel

Modified:
  head/sys/dev/extres/clk/clk.c

Modified: head/sys/dev/extres/clk/clk.c
==============================================================================
--- head/sys/dev/extres/clk/clk.c	Sun Mar 27 23:19:14 2016	(r297327)
+++ head/sys/dev/extres/clk/clk.c	Sun Mar 27 23:19:20 2016	(r297328)
@@ -818,6 +818,10 @@ clknode_set_freq(struct clknode *clknode
 	/* 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;
 
 	/*


More information about the svn-src-head mailing list