From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <47A2EE40.2070602@domain.hid> Date: Fri, 01 Feb 2008 11:02:40 +0100 From: Soft Axel MIME-Version: 1.0 References: <2ff1a98a0802010120u6fdf215apf0a542e0c2b2bcff@domain.hid> <2ff1a98a0802010153l70062d8eo41c709715ad4fcdb@domain.hid> In-Reply-To: <2ff1a98a0802010153l70062d8eo41c709715ad4fcdb@domain.hid> Content-Type: multipart/alternative; boundary="------------050400010101040703050607" Subject: Re: [Xenomai-core] rt_task_sleep doesn't work with round robin scheduling List-Id: "Xenomai life and development \(bug reports, patches, discussions\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gilles Chanteperdrix Cc: xenomai@xenomai.org This is a multi-part message in MIME format. --------------050400010101040703050607 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Gilles Chanteperdrix ha scritto: > On Fri, Feb 1, 2008 at 10:42 AM, axel axel wrote: > >> 2008/2/1, Gilles Chanteperdrix : >> >>> On Fri, Feb 1, 2008 at 10:08 AM, axel axel wrote: >>> >>>> Hi, >>>> >>>> i try to use rt_task_sleep( 10000000 ) in a user-space task under >>>> round-robin scheduling but doesnt' work. >>>> >>> Do not forget that the number passed to rt_task_sleep is a count of >>> ticks (and documented as such), so, if you want to sleep for 10ms, you >>> should call: >>> rt_task_sleep(rt_timer_ns2ticks(10000000)) >>> >> i try also this but nothing is changed. >> > > Of course, but about the other question: do you observe the same > behaviour with xenomai trunk ? > > What do you mean xenomai trunk ? this is my actual configuration: - xenomai-2.4-rc5 - kernel 2.6.20.4 arm cirrus ep9315 patched have i try with xenomai 2.4.1 ? thanks Roberto Bielli --------------050400010101040703050607 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Gilles Chanteperdrix ha scritto:
On Fri, Feb 1, 2008 at 10:42 AM, axel axel <softaxel@domain.hid> wrote:
  
2008/2/1, Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>:
    
On Fri, Feb 1, 2008 at 10:08 AM, axel axel <softaxel@domain.hid> wrote:
      
Hi,

i try to use rt_task_sleep( 10000000 ) in a user-space task under
round-robin scheduling but doesnt' work.
        
Do not forget that the number passed to rt_task_sleep is a count of
ticks (and documented as such), so, if you want to sleep for 10ms, you
should call:
rt_task_sleep(rt_timer_ns2ticks(10000000))
      
i try also this but nothing is changed.
    

Of course, but about the other question: do you observe the same
behaviour with xenomai trunk ?

  
What do you mean  xenomai trunk ?

this is my actual configuration:
 - xenomai-2.4-rc5
 - kernel 2.6.20.4 arm cirrus ep9315 patched

have i try with xenomai 2.4.1 ?

thanks

Roberto Bielli
--------------050400010101040703050607--