<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>ColdFire/68K Microcontrollers and Processors中的主题 Re: MCF5301x - 1ms resolution timer</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5301x-1ms-resolution-timer/m-p/405219#M12496</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Thanks Tom!&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;I get a 1ms timer!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;I'm using a "build system" based on Arcturus Networks for the evaluation board uC57017EVM.&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;As you told me "&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;The tick rate is determined by the definition of "CONFIG_HZ"" &lt;/SPAN&gt;so I checked other Kconfig files for this platform and it was in&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;arch/m68knommu/configs/uC53017EVM_deconfig&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Thanks very much!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Jun 2015 12:26:34 GMT</pubDate>
    <dc:creator>pheredia</dc:creator>
    <dc:date>2015-06-18T12:26:34Z</dc:date>
    <item>
      <title>MCF5301x - 1ms resolution timer</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5301x-1ms-resolution-timer/m-p/405213#M12490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working with a MCF5301x microprocessor using a 2.6.26 Kernel.&lt;/P&gt;&lt;P&gt;The microprocessor has a resolution of 10ms as you can see on timer_list&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# cat /proc/timer_list&lt;/P&gt;&lt;P&gt;Timer List Version: v0.3&lt;/P&gt;&lt;P&gt;HRTIMER_MAX_CLOCK_BASES: 2&lt;/P&gt;&lt;P&gt;now at 1880234849000 nsecs&lt;/P&gt;&lt;P&gt;cpu: 0&lt;/P&gt;&lt;P&gt; clock 0:&lt;/P&gt;&lt;P&gt;&amp;nbsp; .index:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;&amp;nbsp; .resolution: 10000000 nsecs&lt;/P&gt;&lt;P&gt;&amp;nbsp; .get_time:&amp;nbsp;&amp;nbsp; ktime_get_real&lt;/P&gt;&lt;P&gt;active timers:&lt;/P&gt;&lt;P&gt; clock 1:&lt;/P&gt;&lt;P&gt;&amp;nbsp; .index:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; .resolution: 10000000 nsecs&lt;/P&gt;&lt;P&gt;&amp;nbsp; .get_time:&amp;nbsp;&amp;nbsp; ktime_get&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #555555; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px;"&gt;I need a timer tick with 1ms resolution. How can I get this timer? Is it possible?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #555555; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px;"&gt;Thanks in advance,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #555555; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px;"&gt;Patricia&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 14:20:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5301x-1ms-resolution-timer/m-p/405213#M12490</guid>
      <dc:creator>pheredia</dc:creator>
      <dc:date>2015-06-16T14:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: MCF5301x - 1ms resolution timer</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5301x-1ms-resolution-timer/m-p/405214#M12491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is more a general Linux Software question than a Coldfire Hardware question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unless you want to get to hardware timers from your userspace code. To see how to do that, find the source for "devmem". With that you would be able to program spare CPU timers and manually (polling from your user code) be able to get timing down to better than a microsecond. Plus or minus 10ms of Linux scheduling delays.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The tick rate is determined by the definition of "CONFIG_HZ" in (probably) arch/m68k/Kconfig. Change it to "1000", rebuild the kernel and see if that does what you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise, check to see if your kernel has CONFIG_HI_RES_TIMERS enabled and read Documentation/timers, specifically hrtimers.txt and highres.txt. You should probably be using these.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remember "Linux isn't real-time". The Kernel can decide to spend a lot of time somewhere other than your "time critical" programs. Just because you can measure time to a finer measure doesn't mean your code will get scheduled to do the read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 01:10:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5301x-1ms-resolution-timer/m-p/405214#M12491</guid>
      <dc:creator>TomE</dc:creator>
      <dc:date>2015-06-17T01:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: MCF5301x - 1ms resolution timer</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5301x-1ms-resolution-timer/m-p/405215#M12492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tom for your fast response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, it is a software question. I'm programming an application to send datas through the network and I need timers with precision at 1ms. &lt;/P&gt;&lt;P&gt;I'm using ITIMER_REAL and I catch SIGALARM so I can get ticks to create my custom timers:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;//_TimerCount desired 1ms&lt;/P&gt;&lt;P&gt;setitimer(ITIMER_REAL, &amp;amp;_TimerCount, NULL);&lt;/P&gt;&lt;P&gt;signal(SIGALRM, HandleSignalAlarm);&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use a 10ms or more to set ITIMER_REAL I get correct custom timers multiple of this value. But if I use a 1ms in ITIMER_REAL, the SIGALRM is not generated each millisecond.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I change the definition of &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;"CONFIG_HZ" in arch/m68k/Kconfig from 100 to 1000 and anything change.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;My kernel don't has the definition "&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;CONFIG_HI_RES_TIMERS", so I can't enabled it. Do you think that I should try to patch my kernel? At the moment, I don't know how to do it. Moreover, Do you know if I would use this high resolution timers in muy userspace code? or I would need a custom driver/module to access them?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Patricia&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 10:51:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5301x-1ms-resolution-timer/m-p/405215#M12492</guid>
      <dc:creator>pheredia</dc:creator>
      <dc:date>2015-06-17T10:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: MCF5301x - 1ms resolution timer</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5301x-1ms-resolution-timer/m-p/405216#M12493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Meanwhile, I wrote a simple application to test resolution timers in my system, using fuction "clock_getres" and the results are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLOCK_REALTIME: 0 s, 10000000 ns&lt;/P&gt;&lt;P&gt;CLOCK_MONOTONIC: 0 s, 10000000 ns&lt;/P&gt;&lt;P&gt;CLOCK_PROCESS_CPUTIME_ID: 0 s, 1 ns&lt;/P&gt;&lt;P&gt;CLOCK_THREAD_CPUTIME_ID: 0 s, 1 ns&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, I wrote another simple application using "CLOCK_PROCESS_CPUTIME_ID" because I thought I could use the high resolution of this timer. You can see the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14345496391267286" data-renderedposition="197_8_1232_752" jivemacro_uid="_14345496391267286"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define NSEC_PER_SEC 1000000000L&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define timerdiff(a,b) ((float)((a)-&amp;gt;tv_sec - (b)-&amp;gt;tv_sec) + \&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ((float)((a)-&amp;gt;tv_nsec - (b)-&amp;gt;tv_nsec))/NSEC_PER_SEC)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;static struct timespec prev = {.tv_sec=0,.tv_nsec=0};&lt;/P&gt;&lt;P&gt;static int count = 5;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void handler( signo )&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; struct timespec now;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(count &amp;gt;= 0)&lt;/P&gt;&lt;P&gt;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &amp;amp;now);&lt;/P&gt;&lt;P&gt;&amp;nbsp; printf("[%d]Diff time:%lf\n", count, timerdiff(&amp;amp;now, &amp;amp;prev));&lt;/P&gt;&lt;P&gt;&amp;nbsp; prev = now;&lt;/P&gt;&lt;P&gt;&amp;nbsp; count--;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; else&lt;/P&gt;&lt;P&gt;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; exit(0);&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int main(int argc, char **argv)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; timer_t t_id;&lt;/P&gt;&lt;P&gt;&amp;nbsp; struct itimerspec tim_spec;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; tim_spec.it_value.tv_sec = 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; tim_spec.it_value.tv_nsec = 1000000; //1ms&lt;/P&gt;&lt;P&gt;&amp;nbsp; tim_spec.it_interval.tv_sec = 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; tim_spec.it_interval.tv_nsec = 1000000; //1ms&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if (timer_create(CLOCK_PROCESS_CPUTIME_ID, NULL, &amp;amp;t_id)) &lt;/P&gt;&lt;P&gt;&amp;nbsp; perror("timer_create");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if (timer_settime(t_id, 0, &amp;amp;tim_spec, NULL))&lt;/P&gt;&lt;P&gt;&amp;nbsp; perror("timer_settime");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &amp;amp;prev);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; signal(SIGALRM, handler);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; while(1)&lt;/P&gt;&lt;P&gt;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; return 0;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, when I execute the application, the result is 10ms, as you can see:&lt;/P&gt;&lt;P&gt;# ./TestTimers.flt&lt;/P&gt;&lt;P&gt;[5]Diff time:0.010000&lt;/P&gt;&lt;P&gt;[4]Diff time:0.010000&lt;/P&gt;&lt;P&gt;[3]Diff time:0.010000&lt;/P&gt;&lt;P&gt;[2]Diff time:0.010000&lt;/P&gt;&lt;P&gt;[1]Diff time:0.010000&lt;/P&gt;&lt;P&gt;[0]Diff time:0.010000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I don't know if I can obtain 1ms of resolution with this hardware (Coldfire MCF53017). Do I have to change the Kernel? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Patricia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 14:06:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5301x-1ms-resolution-timer/m-p/405216#M12493</guid>
      <dc:creator>pheredia</dc:creator>
      <dc:date>2015-06-17T14:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: MCF5301x - 1ms resolution timer</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5301x-1ms-resolution-timer/m-p/405217#M12494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Linux is not the best choice for timing precision. You can write bare-metal firmware for the &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;MCF5301x&lt;/SPAN&gt; that will control a timer directly, and execute timing-critical code in assembly at interrupt time. You can also use a RTOS and leverage the timer API for tighter thread control than Linux, although I do not know whether 1 ms is achievable. If you absolutely need Linux for other reasons, then you may need to write your own drivers to handle the precision timing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, you may need to redesign your code so that it does not use signals for timing and scheduling. There are many techniques on many operating systems (see CoreAudio and CoreMIDI on OSX) to allow sub-millisecond scheduling of audio/video events, but these techniques rely heavily on the data formatting and buffering to achieve their goals. In other words, the solution is highly dependent on what you need to do precisely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Often, it is the wrong approach to cause task switching every millisecond when there is not an event scheduled every millisecond. Some solutions dynamically reprogram the timer (with 1 ms precision) to only fire when the next event is needed, to avoid losing a large amount of processor time to frequent task switching.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 17:16:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5301x-1ms-resolution-timer/m-p/405217#M12494</guid>
      <dc:creator>rsdio</dc:creator>
      <dc:date>2015-06-17T17:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: MCF5301x - 1ms resolution timer</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5301x-1ms-resolution-timer/m-p/405218#M12495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; I change the definition of &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;"CONFIG_HZ" in arch/m68k/Kconfig from 100 to 1000 and anything change.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;That's not how you reconfigure the kernel. I pointed out that CONFIG_HZ was defined there so you'd know where to find it in the config program, not that that is where to change it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I don't know what "build system" you're using, but when building a kernel without running it under a "system", you run "make menuconfig" [1] and it brings up a program where you can select the options. In my 2.6 Kernel, building for i.MX, there's "Kernel Features / High Resolution Timer Support" to enable that. Some builds let you select the "HZ" value in there. In others it looks like you have to edit the "Kconfig" file. Most modern systems run "tickless", which changes things somewhat.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;"make config" or "make menuconfig" reads the ".config" file, lets you make changes and then rewrites it based on your changes. You then "make" [2] to build a kernel according to the current ".config" file. You can view ".config" to see what the kernel has been built with. It is worthwhile enabling "CONFIG_CONFIGFS_FS" if you have it, as then from a running kernel you can see what options it was built with (and rebuild it like that).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;gt; &lt;/SPAN&gt;read Documentation/timers, specifically hrtimers.txt and highres.txt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;And in the latter it refers you to:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;A class="jive-link-external-small" href="http://www.linuxsymposium.org/2006/linuxsymposium_procv1.pdf" rel="nofollow" target="_blank"&gt;http://www.linuxsymposium.org/2006/linuxsymposium_procv1.pdf&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;But since this is the Internet and that was 9 years ago the link is dead. I found a copy here:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;A class="jive-link-external-small" href="https://www.kernel.org/doc/ols/2006/ols2006v1-pages-333-346.pdf" rel="nofollow" target="_blank"&gt;https://www.kernel.org/doc/ols/2006/ols2006v1-pages-333-346.pdf&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Take good note of what "rsdio" said though.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Note 1: In my case "make ARCH=arm CROSS_COMPILE=arm-cortexa8-linux-gnueabi- menuconfig" or it may default to building for an X86.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Note 2: Ditto "&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;make ARCH=arm CROSS_COMPILE=arm-cortexa8-linux-gnueabi-" or equivalent.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Tom&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 00:45:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5301x-1ms-resolution-timer/m-p/405218#M12495</guid>
      <dc:creator>TomE</dc:creator>
      <dc:date>2015-06-18T00:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: MCF5301x - 1ms resolution timer</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5301x-1ms-resolution-timer/m-p/405219#M12496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Thanks Tom!&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;I get a 1ms timer!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;I'm using a "build system" based on Arcturus Networks for the evaluation board uC57017EVM.&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;As you told me "&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;The tick rate is determined by the definition of "CONFIG_HZ"" &lt;/SPAN&gt;so I checked other Kconfig files for this platform and it was in&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;arch/m68knommu/configs/uC53017EVM_deconfig&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Thanks very much!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 12:26:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5301x-1ms-resolution-timer/m-p/405219#M12496</guid>
      <dc:creator>pheredia</dc:creator>
      <dc:date>2015-06-18T12:26:34Z</dc:date>
    </item>
  </channel>
</rss>

