Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753243Ab3EFMLK (ORCPT ); Mon, 6 May 2013 08:11:10 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:35715 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751525Ab3EFMLI (ORCPT ); Mon, 6 May 2013 08:11:08 -0400 Date: Mon, 6 May 2013 14:11:06 +0200 From: Pavel Machek To: Peter Zijlstra Cc: Ingo Molnar , Colin Cross , Andrew Morton , lkml , Trond Myklebust , Len Brown , "Rafael J. Wysocki" , Ingo Molnar , "J. Bruce Fields" , "David S. Miller" , Andrew Morton , Mandeep Singh Baines , Paul Walmsley , Al Viro , "Eric W. Biederman" , Oleg Nesterov , linux-nfs@vger.kernel.org, Linux PM list , netdev , Linus Torvalds , Tejun Heo , Ben Chan Subject: Re: [PATCH 2/2] lockdep: check that no locks held at freeze time Message-ID: <20130506121106.GA25615@amd.pavel.ucw.cz> References: <1367615050-3894-1-git-send-email-ccross@android.com> <1367615050-3894-2-git-send-email-ccross@android.com> <20130504130440.GC13770@amd.pavel.ucw.cz> <20130504225715.GB24276@amd.pavel.ucw.cz> <20130505000528.GA25454@amd.pavel.ucw.cz> <20130505091844.GC22239@gmail.com> <20130506085547.GC13861@dyad.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130506085547.GC13861@dyad.programming.kicks-ass.net> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1034 Lines: 23 1;2403;0cOn Mon 2013-05-06 10:55:47, Peter Zijlstra wrote: > On Sun, May 05, 2013 at 11:18:44AM +0200, Ingo Molnar wrote: > > That's the old 32-bit x86 trick to compute 'current' from the kernel stack > > pointer. > > > > It can be done better - for example on platforms with optimized percpu > > variables (x86-64) it looks like this: > > Doesn't i386 have all the funny per-cpu stuff too? So the only reason it still > does the fugly stack based thing is because nobody could be arsed to do the > work of converting it. (Note that the quoted example was from ARM. But also note that the percpu stuff requires memory access, so...) 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/