From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 7 May 2002 11:10:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 7 May 2002 11:09:47 -0400 Received: from holomorphy.com ([66.224.33.161]:49385 "EHLO holomorphy") by vger.kernel.org with ESMTP id ; Tue, 7 May 2002 11:09:26 -0400 Date: Tue, 7 May 2002 08:08:09 -0700 From: William Lee Irwin III To: "J.A. Magallon" Cc: Lista Linux-Kernel , Robert Love , Ingo Molnar Subject: Re: irqbalance+O(1)-sched Message-ID: <20020507150809.GT32767@holomorphy.com> Mail-Followup-To: William Lee Irwin III , "J.A. Magallon" , Lista Linux-Kernel , Robert Love , Ingo Molnar In-Reply-To: <20020507150357.GA2142@werewolf.able.es> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Description: brief message Content-Disposition: inline User-Agent: Mutt/1.3.25i Organization: The Domain of Holomorphy Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 07, 2002 at 05:03:57PM +0200, J.A. Magallon wrote: > Everything mix easy but this piece of code in irqbalance: > int idle_cpu(int cpu) > { > return cpu_curr(cpu) == idle_task(cpu); > } > 2.4.18 defines it as > sched.c:#define idle_task(cpu) (init_tasks[cpu_number_map(cpu)]) > ... > sched.c:#define idle_task(cpu) (&init_task) > but O1 kills it. > Any syggestion on hwo to implement idle_cpu() on top of O1 ? int idle_cpu(int cpu) { return cpu_curr(cpu) == cpu_rq(cpu)->idle; } Cheers, Bill