Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262528AbTESRdc (ORCPT ); Mon, 19 May 2003 13:33:32 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262530AbTESRdc (ORCPT ); Mon, 19 May 2003 13:33:32 -0400 Received: from almesberger.net ([63.105.73.239]:38921 "EHLO host.almesberger.net") by vger.kernel.org with ESMTP id S262528AbTESRdb (ORCPT ); Mon, 19 May 2003 13:33:31 -0400 Date: Mon, 19 May 2003 14:46:05 -0300 From: Werner Almesberger To: Ingo Molnar Cc: Linus Torvalds , linux-kernel@vger.kernel.org Subject: Re: [patch] sched-cleanup-2.5.69-A0 Message-ID: <20030519144605.B1432@almesberger.net> References: <20030519135144.A1432@almesberger.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: ; from mingo@elte.hu on Mon, May 19, 2003 at 07:02:38PM +0200 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1336 Lines: 30 Ingo Molnar wrote: > so you really want to run every time there's idle time, but you also want > to sleep until the event that causes some other thread to run, right? Basically yes. When my idle thread has decided that the system is really idle (i.e. if there are pending softirqs, it generates an interrupt and yields), it contacts the simulator process (outside the UML system), and puts the entire UML system to sleep. The simulator can then mess with the UML system through ptrace. When it's done, it may advance the time, and let the UML system run again. If the time has changed, the UML system will fast-forward jiffies, and possibly generate a timer interrupt. Then it yields its timeslice, and the cycle begins anew. There are no "outside" interrupts, so ultimately, the event causing other threads to run also comes from my idle thread. - Werner -- _________________________________________________________________________ / Werner Almesberger, Buenos Aires, Argentina wa@almesberger.net / /_http://www.almesberger.net/____________________________________________/ - 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/