Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 15 Feb 2002 09:22:58 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 15 Feb 2002 09:22:38 -0500 Received: from smtpzilla5.xs4all.nl ([194.109.127.141]:17679 "EHLO smtpzilla5.xs4all.nl") by vger.kernel.org with ESMTP id ; Fri, 15 Feb 2002 09:22:30 -0500 Date: Fri, 15 Feb 2002 15:22:03 +0100 (CET) From: Roman Zippel X-X-Sender: To: Jeff Garzik cc: David Howells , Linus Torvalds , , "David S. Miller" , , Subject: Re: [PATCH] move task_struct allocation to arch In-Reply-To: <3C6D126B.E5B4810A@mandrakesoft.com> 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 Hi, On Fri, 15 Feb 2002, Jeff Garzik wrote: > > As I mentioned before I more like the byte approach, since atomic bit > > field handling is quite expensive on most architectures, where a simple > > set/clear byte is only one or two instructions, if there is byte > > load/store instruction. So I'd really like to see to leave the decision to > > the architecture, whether to use bit or byte fields. > > We have tons of code already using atomic test_and_set_bit type > stuff... why not just make sure your bit set/clear stuff is fast? :) Because in this case there is no atomic test_and_(clear|set)_bit needed. We only need to clear the bit/byte before scheduling/signal delivery is started. bye, Roman - 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/