<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>CPU utilization measurment failure</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/43072/cpu-utilization-measurment-failure</link><description> 
Hello, 
I am working on a STR9 scheduler (it is open source - will post a
link here when it is ready on the condition you help me to solve this
problem :-) ) 
I don&amp;#39;t understand why my code to measure the CPU utilization does
not work. It is very simply</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: CPU utilization measurment failure</title><link>https://community.arm.com/thread/89344?ContentTypeID=1</link><pubDate>Wed, 29 Oct 2008 09:51:24 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:f07c9323-2054-4e38-bacb-2eaa27776fd9</guid><dc:creator>Catcus Blip</dc:creator><description>&lt;p&gt;&lt;p&gt;
Arthur, F D,&lt;br /&gt;
Thanks for your replies. I know what&amp;#39;s wrong: the answer is in the
function&amp;#39;s name! Having several task execute instruction causes a
jitter in the exact moment the value of the hardware timer is
evaluated. I wanted to reduce interrupt latency by removing some
functionality to program context but that is not functioning as
expected and will not generate predictable delays which is
unacceptable. I will fix it, but try to make it fit elegantly. You
will get to see the result (hopefully, soon...)&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CPU utilization measurment failure</title><link>https://community.arm.com/thread/52750?ContentTypeID=1</link><pubDate>Wed, 29 Oct 2008 09:32:55 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:6ce879e3-e48b-49a3-81a6-832ead84278c</guid><dc:creator>F D</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hi Tamir,&lt;/p&gt;

&lt;p&gt;
is it possible that your &amp;#39;timer_poll&amp;#39; function doesn&amp;#39;t provide the
functionality you expect?&lt;/p&gt;

&lt;p&gt;
Frank&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CPU utilization measurment failure</title><link>https://community.arm.com/thread/52749?ContentTypeID=1</link><pubDate>Wed, 29 Oct 2008 08:49:52 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:7275e75a-6d4c-4c7f-83e3-1c752464a746</guid><dc:creator>Arthur Plank</dc:creator><description>&lt;p&gt;&lt;p&gt;
Have you looked at the assembler to see if there is any
optimization that might be affecting it?&lt;/p&gt;

&lt;p&gt;
Would it be worth putting your two blocks of loop code into a
single shared function - To ensure that exactly the same code is
executed on each of the two attempts?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>