Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 18 Jun 2002 15:29:52 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 18 Jun 2002 15:29:51 -0400 Received: from to-velocet.redhat.com ([216.138.202.10]:41977 "EHLO touchme.toronto.redhat.com") by vger.kernel.org with ESMTP id ; Tue, 18 Jun 2002 15:29:47 -0400 Date: Tue, 18 Jun 2002 15:29:49 -0400 From: Benjamin LaHaise To: Rusty Russell Cc: Robert Love , Linux Kernel Mailing List Subject: Re: latest linus-2.5 BK broken Message-ID: <20020618152949.B16091@redhat.com> References: <1024422409.1476.208.camel@sinai> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from rusty@rustcorp.com.au on Wed, Jun 19, 2002 at 04:51:31AM +1000 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 815 Lines: 22 On Wed, Jun 19, 2002 at 04:51:31AM +1000, Rusty Russell wrote: > You could do a loop here, but the real problem is the broken userspace > interface. Can you fix this so it takes a single CPU number please? > > ie. > /* -1 = remove affinity */ > sys_sched_setaffinity(pid_t pid, int cpu); > > This will work everywhere, and doesn't require userspace to know the > size of the cpu bitmask etc. That doesn't work. Think of SMT CPU pairs (aka HyperThreading) or quads that share caches. -ben -- "You will be reincarnated as a toad; and you will be much happier." - 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/