1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>struct clk_notifier_data</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="The Linux Kernel API"><link rel="up" href="clk.html" title="Chapter&#160;17.&#160;Clock Framework"><link rel="prev" href="API-struct-clk-notifier.html" title="struct clk_notifier"><link rel="next" href="API-clk-notifier-register.html" title="clk_notifier_register"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">struct clk_notifier_data</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-struct-clk-notifier.html">Prev</a>&#160;</td><th width="60%" align="center">Chapter&#160;17.&#160;Clock Framework</th><td width="20%" align="right">&#160;<a accesskey="n" href="API-clk-notifier-register.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-struct-clk-notifier-data"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct clk_notifier_data &#8212; 
2     rate data to pass to the notifier callback
3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting">
4struct clk_notifier_data {
5  struct clk * clk;
6  unsigned long old_rate;
7  unsigned long new_rate;
8};  </pre></div><div class="refsect1"><a name="idp1129195484"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">clk</span></dt><dd><p>
9   struct clk * being changed
10      </p></dd><dt><span class="term">old_rate</span></dt><dd><p>
11   previous rate of this clk
12      </p></dd><dt><span class="term">new_rate</span></dt><dd><p>
13   new rate of this clk
14      </p></dd></dl></div></div><div class="refsect1"><a name="idp1129198124"></a><h2>Description</h2><p>
15   For a pre-notifier, old_rate is the clk's rate before this rate
16   change, and new_rate is what the rate will be in the future.  For a
17   post-notifier, old_rate and new_rate are both set to the clk's
18   current rate (this was done to optimize the implementation).
19</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-struct-clk-notifier.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="clk.html">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="API-clk-notifier-register.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">struct clk_notifier</span>&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;<span class="phrase">clk_notifier_register</span></td></tr></table></div></body></html>
20