Message-ID: Date: Fri, 15 Sep 2006 11:15:08 +0200 From: "Dmitry Adamushko" In-Reply-To: <1158308512.5009.35.camel@domain.hid> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_250090_23137203.1158311708748" References: <58168.129.217.4.64.1158067468.squirrel@domain.hid> <1158091876.5020.8.camel@domain.hid> <450727D1.6060203@domain.hid> <4507C49A.5070909@domain.hid> <1158223595.5040.16.camel@domain.hid> <1158308512.5009.35.camel@domain.hid> Subject: [Xenomai-core] Re: [Xenomai-help] Bad EIP kernel-Oops List-Id: "Xenomai life and development \(bug reports, patches, discussions\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: rpm@xenomai.org Cc: Jan Kiszka , xenomai@xenomai.org ------=_Part_250090_23137203.1158311708748 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 15/09/06, Philippe Gerum wrote: > > On Fri, 2006-09-15 at 00:12 +0200, Dmitry Adamushko wrote: > > [...] > > > > > And it's not a good idea to get ipipe_catch_event() buzy spinning as > > (as I understand) ipipe_dispatch_event() may take, in general, an > > unbounded amount of time. > > > > Actually, this is not an issue, since there is no requirement for > bounded execution time in ipipe_catch_event(). This call is part of the > initialization chores, it is not meant as being deterministic. I meant it's not ok to keep a CPU spinning all this time. But your approach with schedule_timeout() is really better. And probably, we don't need to try being more general that it's really required as we need to get synched only with ipipe_catch_event(..., NULL) from the Linux domain. -- > Philippe. > > -- Best regards, Dmitry Adamushko ------=_Part_250090_23137203.1158311708748 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline

On 15/09/06, Philippe Gerum <rpm@xenomai.org> wrote:
On Fri, 2006-09-15 at 00:12 +0200, Dmitry Adamushko wrote:

[...]

>
> And it's not a good idea to get ipipe_catch_event() buzy spinning as
> (as I understand) ipipe_dispatch_event() may take, in general, an
> unbounded amount of time.
>

Actually, this is not an issue, since there is no requirement for
bounded execution time in ipipe_catch_event(). This call is part of the
initialization chores, it is not meant as being deterministic.

I meant it's not ok to keep a CPU spinning all this time. But your approach with schedule_timeout() is really better. And probably, we don't need to try being more general that it's really required as we need to get synched only with ipipe_catch_event(..., NULL) from the Linux domain.
 


--
Philippe.




--
Best regards,
Dmitry Adamushko ------=_Part_250090_23137203.1158311708748--