Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758445AbYJII5A (ORCPT ); Thu, 9 Oct 2008 04:57:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753582AbYJII4v (ORCPT ); Thu, 9 Oct 2008 04:56:51 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:33673 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751684AbYJII4u (ORCPT ); Thu, 9 Oct 2008 04:56:50 -0400 Date: Thu, 9 Oct 2008 10:56:49 +0200 From: Pavel Machek To: Matt Mackall Cc: Ingo Molnar , Linux Kernel Mailing List , linux-acpi@vger.kernel.org Subject: Re: Why is arch/x86/kernel/acpi/sleep.c:temp_stack 10k? Message-ID: <20081009085649.GC29957@atrey.karlin.mff.cuni.cz> References: <1222819957.13453.15.camel@calx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1222819957.13453.15.camel@calx> User-Agent: Mutt/1.5.13 (2006-08-11) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 811 Lines: 27 > We've got: > > #if defined(CONFIG_SMP) && defined(CONFIG_64BIT) > static char temp_stack[10240]; > #endif > > and: > > #ifdef CONFIG_SMP > stack_start.sp = temp_stack + 4096; > #endif > > ..which suggests we use at most 4k of the stack? I guess someone (probably me) was "playing it safe" -- not exactly remembering if stack grows down or up. I guess it should be safe to change it... will do that. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html -- 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/