Date: Tue, 11 Jul 2017 12:30:56 +0200 From: Henning Schild Message-ID: <20170711123056.232b8640@md1em3qc> In-Reply-To: References: <20170711104133.4d12cfc7@md1em3qc> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai] secondary mode switches on rt_task_set_priority List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Philippe Gerum Cc: "xenomai@xenomai.org" Am Tue, 11 Jul 2017 11:45:20 +0200 schrieb Philippe Gerum : > On 07/11/2017 10:41 AM, Henning Schild wrote: > > Hi, > > > > i was asked to assist debugging a case where a SIGXCPU is received > > after calling rt_task_set_priority. According to the docs that call > > should not cause secondary mode switches, but it seems it does. > > This is a documented issue: > http://xenomai.org/migrating-from-xenomai-2-x-to-3-x/#Scheduling > > > Xenomai 3.0.5 kernel 4.4.43 > > > > I did not start digging yet but wanted to ask if someone has already > > come across that scenario. > > > > There is no work around with 3.0.x. There is a build option with the > upcoming 3.1 in -next called --enable-lazy-setsched, which defers the > priority update on the glibc-side until the target thread switches to > secondary mode. So it is known and the call should probably be tagged switch-secondary? Henning