Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261565AbVBHVUm (ORCPT ); Tue, 8 Feb 2005 16:20:42 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261641AbVBHVUm (ORCPT ); Tue, 8 Feb 2005 16:20:42 -0500 Received: from lirs02.phys.au.dk ([130.225.28.43]:54246 "EHLO lirs02.phys.au.dk") by vger.kernel.org with ESMTP id S261565AbVBHVUf (ORCPT ); Tue, 8 Feb 2005 16:20:35 -0500 Date: Tue, 8 Feb 2005 22:20:23 +0100 (MET) From: Esben Nielsen To: Jeff Dike Cc: Ingo Molnar , linux-kernel@vger.kernel.org Subject: Re: Real-Time Preemption and UML? In-Reply-To: <200502081855.j18ItFs0012685@ccure.user-mode-linux.org> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-DAIMI-Spam-Score: -2.82 () ALL_TRUSTED Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1473 Lines: 38 On Tue, 8 Feb 2005, Jeff Dike wrote: > mingo@elte.hu said: > > Jeff, any objections against adding this change to UML at some point? > > No, not at all. I just need to understand what CONFIG_PREEMPT requires of > UML. Ingo can probably tell you in much more detail. My problem when I tried to compile with CONFIG_PREEMPT_RT (not CONFIG_PREEMPT!) was that __SEMAPHORE_INITIALIZER didn't exist since the architecture specific semaphore.h is not included in that configuration. The reason again is that locking (not completions) is changed a lot under CONFIG_PREEMPT_RT to introduce muteces instead of raw spinlocks and priority inheritance to make these lockings behave deterministicly. > > >From a quick read of Documentation/preempt-locking.txt, this looks like it's > implementing Rule #3 (unlock by the same task that locked), which looks fine. > Now I don't really know who I am responding to. But both up()s now changed to complete()s are in something looking very much like an interrupt handler. But again, as I said, I didn't analyze the code in detail, I just made it compile and checked that it worked in bare 2.6.11-rc2 UML - which I am not too sure how to set up and use to begin with! > Jeff > Esben - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/