Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 13 Jan 2002 11:11:33 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 13 Jan 2002 11:11:22 -0500 Received: from mx2.elte.hu ([157.181.151.9]:23683 "HELO mx2.elte.hu") by vger.kernel.org with SMTP id ; Sun, 13 Jan 2002 11:11:19 -0500 Date: Sun, 13 Jan 2002 19:08:37 +0100 (CET) From: Ingo Molnar Reply-To: To: "James C. Owens" Cc: "'Matti Aarnio'" , Subject: Re: O(1) scheduler ver H6 - more straightforward timeslice macros In-Reply-To: <000001c19bb7$20756710$0100a8c0@jcowens.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 12 Jan 2002, James C. Owens wrote: > Point well made. How about > > #define PRIO_TO_TIMESLICE(p) \ > (MAX_TIMESLICE - > ((USER_PRIO(p)*(MAX_TIMESLICE-MIN_TIMESLICE))/(MAX_USER_PRIO-1))) > > #define RT_PRIO_TO_TIMESLICE(p) \ > (MAX_TIMESLICE - ((p*(MAX_TIMESLICE-MIN_TIMESLICE))/(MAX_RT_PRIO-1))) the macros are still not equivalent. Try HZ = 100 and nice == -17 for example. Ingo - 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/