lkml.org 
[lkml]   [2009]   [Mar]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 08/57] microblaze_v7: Interrupt handling, timer support, selfmod code
On Fri, 20 Mar 2009, Michal Simek wrote:
> Why is my .resolution: 10000000 nsecs? It seems to me weird.

Well. The resulution there is the granularity which the kernel uses to
expire application timers. Once the kernel switches to high resolution
mode it sets the granularity to 1ns.

To get high resolution mode you need two things:

1) a suitable clocksource - which needs to have the
CLOCK_SOURCE_IS_CONTINUOUS flag set

2) a clock event device which has CLOCK_EVT_FEAT_PERIODIC flag set.

3) CONFIG_HIGH_RES_TIMERS=y

Thanks,

tglx


\
 
 \ /
  Last update: 2009-03-20 11:53    [W:0.100 / U:0.332 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site