From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4444F0E3.80204@domain.hid> Date: Tue, 18 Apr 2006 16:00:03 +0200 From: Philippe Gerum MIME-Version: 1.0 Subject: Re: [Adeos-main] CONFIG_PREEMPT doesn't work with ADEOS References: <20060418131428.31f735e9@domain.hid> In-Reply-To: <20060418131428.31f735e9@domain.hid> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: General discussion about Adeos List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Bernhard Walle Cc: adeos-main@gna.org Bernhard Walle wrote: > Hello, > > I have a kernel 2.6.15.6 with > http://download.gna.org/adeos/patches/v2.6/i386/adeos-ipipe-2.6.15-i386-1.2-03.patch > patch. In this configuration, CONFIG_PREEMPT doesn't work any more, > i.e. the kernel is not preempted. > > With the kernel without ADEOS patch, it works fine. A test program is > at http://www.bwalle.de/temp/kern-preempt.tar.bz2. > > Do you know what's wrong? > This should improve things quite a bit: --- arch/i386/kernel/entry.S~ 2006-03-21 14:34:51.000000000 +0100 +++ arch/i386/kernel/entry.S 2006-04-18 15:38:50.000000000 +0200 @@ -231,7 +231,7 @@ #ifdef CONFIG_PREEMPT ENTRY(resume_kernel) - CLI + cli cmpl $0,TI_preempt_count(%ebp) # non-zero preempt_count ? jnz restore_nocheck need_resched: -- Philippe.