<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div class="h5"><br>
&gt; +     return 0;<br>
&gt; +}<br>
&gt; +<br>
&gt; +late_initcall(imx_cpuidle_init);<br>
<br>
</div></div>We have a late_initcall here which needs to be protected from other<br>
cpus. On the other hand we depend on board code calling<br>
imx_cpuidle_board_params() before this initcall. I think the board code<br>
should call a imx_cpuidle_init(struct imx_cpuidle_params<br>
*cpuidle_params) instead which makes the flow of execution more clear.<div class="im"><br></div></blockquote><div>imx_cpuidle_init can not be called directly in board code, since it is too early to register cpuidle driver and device which depend on some other system resource.</div>
<div><br></div><div>Yong</div></div>