From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Sebastian Smolorz <ssm@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-core] [PATCH] Don't call __ipipe_mach_set_dec in rthal_timer_release directly
Date: Wed, 15 Nov 2006 10:04:40 +0100 [thread overview]
Message-ID: <455AD828.4040801@domain.hid> (raw)
In-Reply-To: <E1GkGSD-0007Z8-0a@domain.hid>
Sebastian Smolorz wrote:
> Gilles Chanteperdrix wrote:
>
>>Sebastian Smolorz wrote:
>>
>>>Hi,
>>>
>>>here's a proposal for a minor change in the I-pipe implementation for
>>>ARM. Since it is required for my S3C24xx patch not to call
>>>__ipipe_mach_set_dec directly when the timer is released by the Xenomai
>>>domain I suggest the following changes. The patch comprises the necessary
>>>modifications for PXA, SA1100 and Integrator, too.
>>>
>>>Comments or objections?
>>
>>Why can not you call __ipipe_mach_set_dec directly when the timer is
>>released ?
>
>
> The timer used for generating interrupts operates in auto-reloading mode when
> it is under Linux control. But when Xenomai reloads the timer the mode of
> operation is one-shot (auto-reload feature in hardware is off). So I have to
> make a distinction between setting the dec value by Xenomai for programming
> the next period and setting the dec value to __ipipe_mach_ticks_per_jiffy
> when the timer control is given back to Linux.
>
> The reason for this is the fact that programming a timer on the S3C24xx can
> take some ticks which means that these ticks aren't count whereas time is
> going on in the real world. So it is more reasonable to let the timer reload
> itself when Xenomai hasn't started it. Setting __ipipe_mach_ticks_per_jiffy
> in the Linux interrupt handler would make every period last some ticks
> longer.
You can avoid this problem by adding LATCH or
__ipipe_mach_ticks_per_jiffy to the current value of the match register
in the timer interrupt, as it is done for the SA and PXA architectures.
--
Gilles Chanteperdrix
next prev parent reply other threads:[~2006-11-15 9:04 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-13 14:16 [Xenomai-core] [PATCH] Don't call __ipipe_mach_set_dec in rthal_timer_release directly Sebastian Smolorz
2006-11-14 17:18 ` Gilles Chanteperdrix
2006-11-15 8:49 ` Sebastian Smolorz
2006-11-15 9:04 ` Gilles Chanteperdrix [this message]
2006-11-15 9:23 ` Sebastian Smolorz
2006-11-15 10:07 ` Gilles Chanteperdrix
2006-11-15 10:25 ` Sebastian Smolorz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=455AD828.4040801@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=ssm@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.