From: Peter Zijlstra Subject: Re: [PATCH 2/2] lockdep: check that no locks held at freeze time Date: Mon, 6 May 2013 10:55:47 +0200 Message-ID: <20130506085547.GC13861@dyad.programming.kicks-ass.net> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20130505091844.GC22239-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Sender: linux-nfs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Ingo Molnar Cc: Pavel Machek , 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-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Linux PM list , netdev , Linus Torvalds , Tejun Heo , Ben Chan List-Id: linux-pm@vger.kernel.org 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. -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html