Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 17 Mar 2003 19:27:16 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 17 Mar 2003 19:27:15 -0500 Received: from packet.digeo.com ([12.110.80.53]:57472 "EHLO packet.digeo.com") by vger.kernel.org with ESMTP id ; Mon, 17 Mar 2003 19:27:14 -0500 Date: Mon, 17 Mar 2003 16:05:56 -0800 From: Andrew Morton To: Nigel Cunningham Cc: pavel@ucw.cz, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Don't refill pcp lists during SWSUSP. Message-Id: <20030317160556.4efc880f.akpm@digeo.com> In-Reply-To: <1047945372.1714.19.camel@laptop-linux.cunninghams> References: <1047945372.1714.19.camel@laptop-linux.cunninghams> X-Mailer: Sylpheed version 0.8.10 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 18 Mar 2003 00:11:44.0721 (UTC) FILETIME=[F59C2410:01C2ECE2] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 666 Lines: 28 Nigel Cunningham wrote: > > +extern unsigned int suspend_task; Please do: #ifdef CONFIG_SOFTWARE_SUSPEND unsigned int suspend_task; #else #define suspend_task 0 #endif so the compiler can remove the few fast-path instructions which you have added. > > + suspend_task = current->pid; > + Zero is a valid PID (the idle task...). It might be clearer to make suspend_task a task_struct*. - 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/