Re: [PATCH v7 1/4] spinlock: A new lockref structure for locklessupdate of refcount

From: Steven Rostedt
Date: Fri Aug 30 2013 - 12:12:35 EST


On Fri, 30 Aug 2013 17:38:47 +0200
Sedat Dilek <sedat.dilek@xxxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/