From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <5061C68F.50505@siemens.com> Date: Tue, 25 Sep 2012 16:58:23 +0200 From: Wolfgang Mauerer MIME-Version: 1.0 References: <50588110.6030701@siemens.com> <50588458.1010802@xenomai.org> <505892E8.6080605@siemens.com> <5058CD54.4070509@xenomai.org> <5059B76F.7020608@siemens.com> <505B4044.7030103@xenomai.org> <5061C394.1050005@siemens.com> <5061C643.8080305@xenomai.org> In-Reply-To: <5061C643.8080305@xenomai.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai] [GIT PULL] core-5 for x86 List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gilles Chanteperdrix Cc: "Kiszka, Jan" , "xenomai@xenomai.org" On 25/09/12 16:57, Gilles Chanteperdrix wrote: > On 09/25/2012 04:45 PM, Wolfgang Mauerer wrote: >> + if (!cpumask_test_cpu(cpu, mask) >> + && t->irq == per_cpu(ipipe_percpu.hrtimer_irq, 0)) { >> + per_cpu(ipipe_percpu.hrtimer_irq, cpu) = t->irq; >> + goto found; > > This only works if cpu 0 is part of the "supported cpus" mask. I think > we need two loops. > true, CPU 0 is not necessarily used for Xenomai, which was the case in my test. Will fix that. Thanks, Wolfgang