From: Steven Rostedt Subject: Re: [PATCH v7 1/4] spinlock: A new lockref structure for lockless update of refcount Date: Fri, 30 Aug 2013 12:12:27 -0400 Message-ID: <20130830121227.3915ffb3@gandalf.local.home> References: <1375758759-29629-1-git-send-email-Waiman.Long@hp.com> <1375758759-29629-2-git-send-email-Waiman.Long@hp.com> <1377751465.4028.20.camel@pasglop> <20130829070012.GC27322@gmail.com> <52200DAE.2020303@hp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Linus Torvalds , Waiman Long , Ingo Molnar , Benjamin Herrenschmidt , Alexander Viro , Jeff Layton , Miklos Szeredi , Ingo Molnar , Thomas Gleixner , linux-fsdevel , Linux Kernel Mailing List , Peter Zijlstra , Andi Kleen , "Chandramouleeswaran, Aswin" , "Norton, Scott J" To: sedat.dilek@gmail.com Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Fri, 30 Aug 2013 17:38:47 +0200 Sedat Dilek wrote: > A Samsung series-5 ultrabook. > > $ grep "model name" /proc/cpuinfo | uniq > model name : Intel(R) Core(TM) i5-2467M CPU @ 1.60GHz I believe the number of CPUs is more important. But as this is an ultrabook, I doubt that is very high. Now I know this isn't going to be popular, but I'll suggest it anyway. What about only implementing the lockref locking when CPUs are greater than 7, 7 or less will still use the normal optimized spinlocks. -- Steve