From: Philippe Gerum In-Reply-To: <466EDF1F.5050103@domain.hid> References: <30228710.1181630552942.JavaMail.ngmail@domain.hid> <1181630207.7354.20.camel@domain.hid> <466ED96E.4050806@domain.hid> <466EDC2C.3020200@domain.hid> <466EDF1F.5050103@domain.hid> Content-Type: text/plain Date: Tue, 12 Jun 2007 20:12:41 +0200 Message-Id: <1181671961.6792.13.camel@domain.hid> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: Philippe Gerum Subject: Re: [Xenomai-core] CONFIG_SMP in switchtest Reply-To: rpm@xenomai.org List-Id: "Xenomai life and development \(bug reports, patches, discussions\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: xenomai-core On Tue, 2007-06-12 at 19:59 +0200, Jan Kiszka wrote: > Gilles Chanteperdrix wrote: > > Jan Kiszka wrote: > >> Philippe Gerum wrote: > >> > >>> On Tue, 2007-06-12 at 08:42 +0200, M. Koehrer wrote: > >>> > >>>> Hi everybody, > >>>> > >>>> I want to know why the --enable-smp option for "configure" of Xenomai is used when there > >>>> is already the corresponding option selected with the kernel configuration? > >>> --enable-smp is only used when you want the user-space side to _require_ > >>> SMP support to be present into the running kernel; i.e. for some (weird) > >>> reason, your application really needs this. Xenomai libraries don't care > >>> whether SMP support is enabled or not, they are not sensitive to that > >>> issue (see the "weak" status of this option in README.INSTALL) > >> > >> Switchtest bases some compile-time decisions on CONFIG_SMP. Nitpicking, > >> OK, but I wonder if this is required. Gilles? > > > > If you do not enable the smp option, switchtest will only use one cpu. > > The reason why I made this is that, on some UP machine, (probably arm, > > but I do no longer remember) sysconf(_SC_NPROCESSORS_ONLN) did not work. > > Welcome to embedded hell :-/. What was the effect precisely? Can we > detect this during runtime? The point is I see people trying this test > on SMP without providing the right switch to configure. Would be a pity > IMHO. > > At this chance: I also noticed problems with our sched_setscheduler > detection and bfin's uClibc. Compilations works, linking fails - they > provide headers, but lack implementations. Patch suggestion will follow. > The main point with the Blackfin port is: which uclinux-dist release are you using? We are currently based on 2007R1-RC3. The uclinux-dist effort is still largely in flux right now, so this makes a significant difference. > And my pthread_spin_lock detection got nicely vaporised on bfin once > again. I'm considering to switch back to the original configure-based > detection. > > Enough of the moaning. > > Jan > -- Philippe.